Relative Positioning
Learn to practice CSS relative positioning with top, right, bottom, and left values.
Let’s discuss relative positioning in more detail.
Relative positioning with the top
, right
, bottom
and left
values
As we mentioned above, position: relative
is like a switch that turns on the top
, right
, bottom
,
and left
properties.
When the top
, right
, bottom
, and left
properties are used on an element that has the position
property
set to relative
, this is what happens:
- The element gets