Positioning Attributes
The CSS-Positioning recommendation
specifies several properties that can be set as style sheet rule
attributes. These attributes are used only when the
position attribute is included in the rule;
otherwise they have no meaning. Implementation of all the CSS-P
attributes varies from browser to browser. Table 4.1 provides a summary of all the attributes
defined in the W3C recommendation as well as how those attributes are
implemented in the browsers. A separate column shows the Navigator
<LAYER> tag attribute that corresponds to
the CSS-P attribute.
Table 4-1. Summary of Positioning Attributes
|
CSS Attribute |
Description |
CSS-P |
IE |
NN |
Layer Attribute |
|---|---|---|---|---|---|
position |
Defines a style rule as being for a positionable element |
1 |
4 |
4 |
- |
left |
The offset distance from the left edge of the element’s positioning context to the left edge of the element’s box |
1 |
4 |
4 |
LEFT |
top |
The offset distance from the top edge of the element’s positioning context to the top edge of the element’s box |
1 |
4 |
4 |
TOP |
width |
The width of an absolute-positioned element’s content |
1 |
4 |
4 |
WIDTH |
height |
The height of an absolute-positioned element’s content |
1 |
4 |
4 |
HEIGHT |
clip |
The shape and dimension of the viewable area of an absolute-positioned element |
1 |
4 |
4 |
CLIP |
overflow |
How to handle content that exceeds its height/width settings |
1 |
4 |
4 |
- |
visibility
|
Whether a positionable element is visible or not |
1 |
4 |
4 |
VISIBILITY |
z-index |
The stacking ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access