Click to See Complete Forum and Search --> : Changing the first character


chestertb
12-03-2003, 12:22 AM
I read somewhere, on one of the copious reference sites I crawl through when I don't want to bother the good people here, that with CSS, there's an attribute that changes the style of the first character of a paragraph.

Trouble is, I can't find it again. Anyone know what attribute this is?

CTB

Robert Wellock
12-03-2003, 07:11 AM
Yes, the :first-letter pseudo-element

<style type="text/css">
<!--
p:first-letter {
font-size : 500%;
}
-->
</style>

ray326
12-03-2003, 12:54 PM
But make sure it's "p:first-letter" and not "p :first-letter".