You are here: Re: Anchor colors « HTML « IT news, forums, messages
Re: Anchor colors

Posted by John Hosking on 08/17/07 22:15

tshad wrote:

Please don't top-post. Again.

> I tried some of the suggestions from here and the articles mentioned and
> still am confused. I tried applying this to a datagrid in asp.net which
> renders to something like (with the CSS):

If you had a URL as we've discussed you wouldn't need to post this code,
and we could all see the results, in all the browsers we have available,
with all the debugging tools we have.


> .gridHeaderStyle a:link, .gridHeaderStyle a:visited {
> color:#red;
> }

It's either color:red; or color:#FF0000; or color:#F00;

> a.gridHeaderStyle:link, a.gridHeaderStyle:visited {
> color:#red;
> }

You don't have any elements which match this selector, as previously
discussed.


> <tr class="gridHeaderStyle" align="Center">
> <td style="width:100px;"><a href="#">Location</a></td>
> </tr>

>
> No matter what I do - the links in the header are
> showing as lime green. I am trying to get them to change to red.
>
> The links in my site should be Lime Green (a:link and a:visited).

No, not exactly. Lime green is #00FF00.

> I have
> the headerstyles' CssClass set to gridHeaderStyle - but it doesn't seem to
> be working for the links in the header.

This comment is inexact enough to make me think you're doing something
(else) bizarre; when you say, "I have the headerstyles' CssClass set to
gridHeaderStyle," it makes me think you're using a class name as a
property for another class, which won't work. Of course without the URL
we can't see the entire code, and without the entire code we don't know
what's supposed to be a header.
>
> I though the ".gridHeaderStyle a:link" or a.gridHeaderStyle:link would
> override the a:link but it doesn't seem to be doing this.
>
> Am I missing something here?

It could be that you need to add the td to the selector, as in
..gridHeaderStyle td a:link, .gridHeaderStyle td a:visited { color:red; }
but I think you probably just need to get the value right. If you had
provided a URL I could have tested it and told you for sure.

Tom, you really, really need to get into a position (and train yourself
to be in the habit) to validate your code. If you keep bashing your head
against invalid code, you're only going to end up with a bloody
forehead. Study the tutorials provided earlier to get your selectors
right, but don't even bother hoping for good results (or asking here)
before you know you have valid code.

And then if you still need to ask here, bring a URL. We'll be glad to
help you then.

HTH. GL.

--
John

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация