I know position: absolute will pop an element from the flow and it stops interacting with its neighbors.
position: absolute
What other ways are there to achieve this?
One trick that makes position:absolute more palatable to me is to make its parent position:relative. Then the child will be 'absolute' relative to the position of the parent.
position:absolute
position:relative
jsFiddle
2.1m questions
2.1m answers
60 comments
57.0k users