New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How do i use the "move" in css?
I dont know if i saw it in css fundamentals or its just not in there
2 Answers
+ 16
You can "move" elements using "transform: translate" or absolute position.
div {
transform: translate(50px, 100px);
}
https://www.w3schools.com/css/css3_2dtransforms.asp
div {
position: absolute;
top: 50px;
right: 100px;
}
https://www.w3schools.com/css/css_positioning.asp
+ 2
Thank you Igor Makarsky