Discussion Forum | Board Infinity
What are the differences between relative and absolute in CSS?
Web Development
web-development
,
css
vidushi-tomar-7f335103
(Vidushi Tomar)
15 August 2020 05:42
1
What are the differences between relative and absolute in CSS?
1 Like
sakshi-srivastava-f3c2a4a4
(Sakshi Srivastava)
7 September 2020 16:01
2
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.
Screenshot 2020-09-07 at 9.30.48 PM
936×758 44.4 KB