|
Posted by Ben C on 04/07/07 08:58
On 2007-04-07, Simon Harris <too-much-spam@makes-you-fat.com> wrote:
> Hi All,
>
> I have my A tags (links) set to green when they are on the body or table
> cells. This works Ok.
>
> I have a background color of orange on my H2 tags, I want to use black for A
> tags in this case.
>
> I have tried the following, which doesnt work (Links remain green).
>
> h2 a {
> color: #000000;
> }
>
> Any idea where I have gone wrong? Have copied my entire CSS for reference,
> below.
>
> Many Thanks,
>
> Simon.
>
> PS: Could not find a CSS specific group - Hope this is not OT!
[...]
I think it's OK. The other one is
comp.infosystems.www.authoring.stylesheets.
It looks like the problem may be that this selector:
> h2 a {
> color : #000000;
> }
[...]
is less "specific" than this one:
> .tableinner td a {
> font: 8pt/10pt verdana;
> font-weight: bold;
> color : #009900;
> }
basically since the second one involves more stuff-- a class and two
elements. See http://www.w3.org/TR/CSS21/cascade.html#specificity
[Back to original message]
|