Relative Position

suggest change

Relative positioning moves the element from where it would have been in normal flow. The original space is reserved. Offset properties:

  1. top
  2. left
  3. right
  4. bottom

are used to indicate how far to move the element from where it would have been in normal flow.

.relpos{
    position:relative;
    top:20px;
    left:30px;
}

This code moves the element with class relpos 20px down and 30px to the right from where it would have been in normal flow.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents