The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › CSS Font Colour
I’m having trouble in getting the first letter colourised. I’m new to CSS and am not sure where I went wrong in my coding.
<html> <head> <style> p:first-letter { colour: #003300; font-size: xx-large; } </style> </head> <body>
Please remember that a pseudo-element adds a special effect to the first character of a text only
</body> </html>
It’s fine but you misspelled “color”.
http://codepen.io/Paulie-D/pen/wzPGJw
Good catch Paulie_D! I almost didn’t notice that.. CSS selectors use American English.