CSS - Links in H2 Tag

S

Simon Harris

Hi,

Hope this is thr right group for CSS related queries, I know the group name
is alt.html, but I could not see a CSS specific group.

I am trying to set link colours differently than the rest of my page when
they are included in an H2 tag, mainly because my H3 tag has a background
colour, but what I have now shows the links as they are else where, as
defined by my a, a:visited and a:hover tags.

Heres my CSS code...

body {
background-color : #FFFFCC;
font: 8pt/10pt verdana;
}

a {
font: 8pt/10pt verdana;
font-weight : bold;
color : #1E8D00;
}

a:visited {
font: 8pt/10pt verdana;
font-weight : bold;
color : #1E8D00;
}

/* H2 */
h2 {
font: 12pt/14pt verdana;
background-color : #66FF66;
}

h2 a {
color: #000000;
}

h2 a:visited {
color: #ff0000;
}

h2 a:hover {
color: #000000;
}

My links within H2 tags are currently green - Not black as I would expect
from my code.

Any help/advice will be much appreciated.

Thanks!
Simon.

--
-
* Please reply to group for the benefit of all
* Found the answer to your own question? Post it!
* Get a useful reply to one of your posts?...post an answer to another one
* Search first, post later : http://www.google.co.uk/groups
* Want my email address? Ask me in a post...Cos2MuchSpamMakesUFat!
 
E

Els

Simon said:
Hi,

Hope this is thr right group for CSS related queries, I know the group name
is alt.html, but I could not see a CSS specific group.

comp.infosystems.www.authoring.stylesheets
I am trying to set link colours differently than the rest of my page when
they are included in an H2 tag, mainly because my H3 tag has a background
colour, but what I have now shows the links as they are else where, as
defined by my a, a:visited and a:hover tags.

Heres my CSS code...

[snip code]
My links within H2 tags are currently green - Not black as I would expect
from my code.

Any help/advice will be much appreciated.

Any url showing the problem is much appreciated ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top