Prev | Current Page 163 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"



Both the div:first-line and p:first-line selectors will be able to be matched
in this case. The equivalent pseudo-markup is:



This is a paragraph of text

containing several lines of text.
How this text is broken up into
lines by a user agent depends on
how the text is rendered, font
properties, size of browser
window, and size of viewing
device.



Selector Reference
The Ultimate CSS Reference 112
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
Partial Full Full Full Partial Partial Partial Buggy Buggy Buggy
The behavior mentioned above, where if the first child node of an element is another
block element, this pseudo-element is propagated to the child node, is not supported
by Internet Explorer up to and including version 7, Firefox up to and including
version 2, and Opera 9.2. However, Safari, up to and including version 3, does
support this behavior correctly.


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