1.

How does the absolute positioning work?

Answer»

Absolute positioning is a very powerful positioning mechanism that allows users to PLACE any element WHEREVER they want in an exact location. The CSS properties right, left, top, bottom and define the exact locations where you need to place the element. In absolute positioning, the FOLLOWING points need to be considered:

  • The element to which the absolute positioning is applied is removed from the normal workflow of the HTML document.
    • The HTML LAYOUT does not create any SPACE for that element in its page layout.
  • The element is positioned relative to the closest positioned ancestor. If no such ancestor is present, then the element is placed relative to the initial container block.
  • The final position of the element is determined based on values provided to the top, right, left, bottom.


Discussion

No Comment Found