Webmaster

References : Style sheets


Block properties

Block elements define blocks of text in a document, such as paragraphs or lists, and appear with a line break before and after them. Block-level contents are enclosed by a rectangular box which, besides acting as a container, is used for positioning calculations.

bottom, left, right, top | direction | display | float | position | unicode-bidi | z-index

bottom, left, right, top
Specifies the distance between the top, bottom, left, and right edge of the element's box and the top, bottom, left, and right edge of the parent (i.e. containing) block.
 
CSS2 value <length> | <percentage> | auto | inherit
 
Initial valueauto
 
Applied to All elements.
 
Inherited No.
 
Notes The percentage value is applied to the parent block height.
 
 Top
direction
Specifies the default writing direction of the element's content (i.e. from left to right or from right to left).
 
CSS1 valueltr | rtl
 
CSS2 valueinherit
 
Initial valueltr
 
Applied to All elements.
 
Inherited Yes.
 
Notes Consult the unicode-bidi property to check the other properties provided with respect to text direction.
 
 Top
display
Indicates how a block content box should be generated.
 
CSS1 valueinline | block | list-item
 
CSS2 valuerun-in | compact | marker | table | inline-table | table-row-group | table-column-group | table-header-group | table-footer-group | table-row | table-cell | table-caption | none | inherit
 
Initial valueinline
 
Applied to All elements
 
Inherited No.
 
 Top
float
Specifies whether an object should float to the left, to the right or not at all.
 
CSS1 valuenone | left | right
 
CSS2 valueinherit
 
Initial valuenone
 
Applied to Elements not placed with an absolute positioning.
 
Inherited No.
 
 Top
position
Determines the CSS2 positioning algorithm used to calculate an object's coordinates.
 
CSS2 valuestatic | <relative> | <absolute> | fixed | inherit
 
Initial valuestatic
 
Applied to All elements except for generated contents.
 
Inherited No.
 
 Top
unicode-bidi
Controls the embedding levels and the reordering with regard to the bidirectional algorithm when elements contain a mixed-language text with different writing directions.
 
CSS2 valuenormal | embed | bidi-override | inherit
 
Initial valuenormal
 
Applied to All elements.
 
Inherited No.
 
 Top
z-index
Specifies the element's stacking level and whether it establishes a local stacking context.
 
CSS2 valueauto | <integer> | inherit
 
Initial valueauto
 
Applied to Positioned elements.
 
Inherited No.
 
 Top