Answers for "move div to left side css"

CSS
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
0

move div to right side css

<!DOCTYPE html>
<html>
<head>
   <style>
	.div1{
	    animation-name: moveRight;
	    animation-duration: 5s;
	    animation-iteration-count: infinite;
	}
	.div2{
	    animation-name: moveRight;
	    animation-duration: 8s;
	    animation-iteration-count: infinite;
	}
	div{
        position: relative;
	    width: 100px;
	    height: 100px;
	    background: yellow;
	    border-radius: 50%;
	    border: 5px solid red;
	}
	@keyframes moveRight{
	    from{
	        left: 0px;
	    }
	    to{
	        left: 200px;
	    }
	}
   </style>
</head>
<body>
	<h1>animation-duration: 5s</h1>
	<div class="div1"></div>
	
	<h1>animation-duration: 10s</h1>
	<div class="div2"></div>
    
</body>
</html>
Posted by: Guest on September-05-2021

Code answers related to "move div to left side css"

Browse Popular Code Answers by Language