Pseudo first-letter styling links

Hi guys and gals,

I am wanting to spruce up my site navigation a bit,
For some reason first-letter does not work on my a elements

#top a:first-letter
{
color:red;
}

basically, for every link in the #top div I want the first letter to be red.
Has anyone any ideas as to why this isn’t working, or a possible solution?

Cheers,

Kiel

Can you post a link to the site?

No sorry, its down while i’m setting up the database and cms,
I can however post any required markup

The first-letter applies to the first character of the first formatted line of a block level element. It does not apply to inner elements such as anchors on indeed inline elements.

You would need to do something like this:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
p:first-letter {
    color:red;
}
</style>
</head>
<body>
<p><a href="#">Test</a></p>
</body>
</html>