This is probably some kind of very basic CSS knowledge that I am just clueless on.
I use classes to define font color and and size for different paragrahs. Like if I want 14pt navy blue text, 12pt red, whatever. So typically I will write code like this:
The link always shows up in the default blue we are used to seeing on most browsers. I always have to put <a class="navy14"... to get the link color to match the paragraph it is contained in.Code:<p class="navy14">This is my 14pt navy blue text <a href="http://www.example.com"> I want to put a link here with the same color</a></p>
My CSS is this:
What am I doing wrong? I want the link to automatically get the color of whatever paragraph it is contained in.Code:.navy14 { FONT-SIZE: 14pt; COLOR: #0A0593; margin-bottom: 0px; margin-top: 0px; }








Bookmarks