May 2003
Intermediate to advanced
480 pages
10h 9m
English
When a :before or :after pseudo-element has its display property set to marker, it is rendered outside the main content box of the element, to the left of the first line (:before), or to the right of the last line (:after) in left-to-right writing systems. This property sets the distance between the two closest border edges of the main content and the marker, as shown in Figure B-4.
Note that the marker box has padding and borders, but no margins.
Inherited: No
See also: Section B.32display
Any CSS length value (px, pt, em, etc.), or the auto constant, which lets the ...
Read now
Unlock full access