DEV Community

Discussion on: A painless guide to understanding CSS positioning

Collapse
 
pshuffle profile image
Thomas Shepard

Wow this is really comprehensive. I did not know you needed to set the parent to relative for absolute to work it explains a lot about things I've tried in the past 🤦🏻

Collapse
 
peterlunch profile image
Peter

Thanks I tried to go into enough details so it was extensive without being to painful. I was in the same boat I couldn't figure out why my absolute positioning wasn't where I wanted it but now I know through writing this post its because I hadn't set the parent element to have a position other than static.