Difference between absolute position and relative position

Difference between absolute position and relative position

welcome to FCC community

I believe relative moves an element relative to it’s original position and the page renders as if it was in it’s original position.

absolute renders the rest of the pages elements as if it didn’t exist, and positions it relative to it’s parent container.

Read the MDN docs on position/positioning

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.