Answers for "what is position absolute and relative in css"

CSS
1

what does position relative do ?

position: relative places an element relative to its current position
without changing the layout around it
whereas position: absolute places an element relative to its parent's
position and changing the layout around it.
Posted by: Guest on September-11-2021
0

what is the difference between relative and absolute css

@media screen { h1#first { position: fixed; }}@media print { h1#first { position: static; }}
Posted by: Guest on August-24-2021

Code answers related to "what is position absolute and relative in css"

Browse Popular Code Answers by Language