m039
-3
Q:

how to move an image up in css

.image{
  position: relative; 
  top: -125px;
}
1
.image{
  position: absolute;
  right:300px;
}
3
<html>
   <head>
   </head>

   <body>
      <div style = "position:relative; left:80px; top:2px; background-color:yellow;">
         This div has relative positioning.
      </div>
   </body>
</html>
5

New to Communities?

Join the community