+ 2

Please can someone explain the difference between relative and absolute positioning in CSS?

CSS

16th Oct 2017, 2:21 PM
Samaila Yakubu Yimir
Samaila Yakubu Yimir - avatar
2 Antworten
+ 5
Relative positioning: The element creates its own coordinate axes, at a location offset from the viewport coordinate axis. It is Part of document flow but shifted. Absolute positioning: An element searches for the nearest available coordinate axes among its parent elements. The element is then positioned by specifying offsets from this coordinate axis. It removed from document normal flow.
18th Oct 2017, 3:24 PM
Elizabeth🌸
Elizabeth🌸 - avatar
18th Oct 2017, 3:28 PM
Elizabeth🌸
Elizabeth🌸 - avatar