Prev | Current Page 165 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

5em:
#breadcrumbs:before {
content: "You are here:";
margin-right: 0.5em;
}
Selector Reference
113 Selector Reference
:before
:before {
declaration block
}
This pseudo-element represents
generated content (p. 347) rendered
before another element, and is used in
conjunction with the content property
(p. 348). Additional properties can be
specified to style the pseudo-element.
Note that the generated content is only
rendered??”it doesn??™t become part of the
document tree.
Compatibility
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
Buggy Full Full Full Partial Partial Partial None None None
In Firefox versions up to and including 2, this pseudo-element is not fully stylable,
most notably when it comes to applying positioning properties. Firefox appears to
have implemented the original CSS2 specification.
In Firefox 1.5 and 2, this pseudo-element doesn??™t work for fieldset elements.
In Opera 9.2, whitespace is always displayed within this pseudo-element as if it??™s
preformatted text??”like whitespace in an HTML
 tag.
                


Pages:
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177