First Letter Selector

From CSS Discuss

Jump to: navigation, search

The first-letter selector is a pseudoelement: it creates a fictitious Html Element in the document, as if there were a on the first letter of the element it is applied to.

Example:

p:first-letter { color:green }

The first letter of each P element will be green.

Different languages have different ideas about what constitutes a first "letter".

See also:

Personal tools