HTML and CSS Reference
In-Depth Information
It is also possible to use absolute positioning. This removes the element from the main flow
of elements, and places it explicitly at the position specified with the left , right , top , bot-
tom properties. Absolutely positioned elements do not interact with other elements on the
page: they can sit on top of or behind other elements. In order to control which element is
on top, the z-index property can be used: the element with the highest z-index is positioned
on top of the other elements.
The final type of positioning is fixed:
position:fixed
This can be used to fix elements in the browser even when the main page is scrolled. This
is not a particularly common positioning, but does have its uses.
Search WWH ::




Custom Search