Prev | Current Page 157 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


This pseudo-element represents the first
character of the first formatted line13 of
text in a block-level element, an inline
block, a table caption, a table cell, or a
list item.
Selector Reference
107 Selector Reference
No other content (for example, an image) may appear before the text.
Certain punctuation characters, like quotation marks, that precede or follow the
first character should be included in the pseudo-element. Despite the name, this
pseudo-element will also match a digit that happens to be the first character in a
block.
If the element is a list item, :first-letter applies to the first character of content
after the list item marker unless the property list-style-position is set to inside,
in which case the pseudo-element may be ignored by the user agent. If an element
includes generated content created with the :before (p. 113) or :after (p. 114)
pseudo-elements, :first-letter applies to the content of the element including
the generated content (p. 347).
13 http://www.


Pages:
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169