Answers for "css left top"

CSS
1

why top -10 css?

.parent {
    position: relative;
    height: 100px;
}
.child {
    position: absolute;
    top: 50%;
}
Posted by: Guest on February-09-2021
4

how to move anything left in css

<html>
   <head>
   </head>

   <body>
      <div style = "position:relative; left:80px; top:2px; background-color:yellow;">
         This div has relative positioning.
      </div>
   </body>
</html>
Posted by: Guest on May-17-2020

Browse Popular Code Answers by Language