Announcement

Announcement Module
Collapse
No announcement yet.

What is meant by position "absolute" in css ?

Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is meant by position "absolute" in css ?

    What is the difference between position:absolute and position:relative in css ?

  • #2
    The position property can be either absolute or relative. Use absolute for objects that you want to have at a specific position on the page, and relative for objects that you want to position relative to wherever they would have otherwise fallen.

    Comment


    • #3
      Really? I don't think so? Absolute is the full path of your link which if you put in browser it should open. And relative is the relative path as per folder from which you are linking that page.

      Comment


      • #4
        If you specify position: relative, then you can use top or bottom, and left or right to move the element relative to where it would normally occur in the document. But when you specify position: absolute, the element is removed from the document and placed exactly where you tell it to go.

        Comment

        Working...
        X