DEV Community

Discussion on: CSS Position : Everything you need for good developer

Collapse
chinmaymathurr profile image
chinmaymathurr

Didn't understood "positioned relative to parent"

Collapse
kunaal438 profile image
Modern Web Author • Edited

It means if you have a relative positioned element with top 500px for example then, if you set its child to absolute position then for that element, this 500px is equal to 0. And the top property behave like margin top.

I hope you understood now. Let me know in comments.