What are the differences between relative and absolute in CSS?

What are the differences between relative and absolute in CSS?

1 Like
  • Relative - Position an element based on its current position without changing the layout.
  • Absolute - Position an element relative to its parent’s position and changing the layout around it.