Difference between css position absolute versus relative

I spent sometime understanding the difference between absolute positioning and relative positioning. It was a confusing topic to me and I decide to illustrate their differences with pictures.

Before going further, we should know the default behaviour of position when we don’t specify any position property.

https://leannezhang.medium.com/difference-between-css-position-absolute-versus-relative-35f064384c6
  • Categories