Hi, I am a newbie to CSS and have a question. I have created a CSS style to some text, but when i make the text into a link it seems to disregard the style. Some parts of the style are still there, the colour and font are correct but it seems to be considerably smaller that what i have selected the style to be. Your help is much appreciated. Thanks.
Sorry. I assumed all coders were psychic. This is the code <td bgcolor="c1f1c6" class="Navigation"><a href="services.htm">Services</a></td> and this is the style code } .Navigation { font-family: Arial; font-size: 14px; font-style: normal; font-weight: normal; color: 124435; }
I don't see anything obviously wrong except the {color: 124435;} should be {color: #124435;}. There is the possibility that a selector of higher specificity is over-ruling some of those properties. We would need to see the whole page. Or, you could use the Firefox developer extension to view the style rules that are being applied. cheers, gary
You've also missed the hash on the td bgcolor. Also try moving the background colour to the CSS if that's possible. Like Gary says, it's hard to see what's going on there. At a guess, have you styled the 'a' element elsewhere?