Bert,
thanks for replying, I tried your suggestion - it didn't work. I have
managed to get it to work by changing "topl" from a class to an ID and
changing the stylesheet to #topl a {...
I don't know if that helps diagnose the problem, it looks like the
containing div overrode the topl style for some reason - beats me!
Richard

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Bert
Sent: Saturday, 9 October 2004 3:27 a.m.
To: [EMAIL PROTECTED]
Subject: RE: [WSG] "top of page" link class not taking effect


G'day

   <div class="topl"><a href="#header">Top of page</a></div> and related
CSS, as follows:

  a.topl {
    color: #660;
    text-decoration: none;}

The reason this doesn't do anything is that a.topl means an anchor with the
class "topl", which is not what you have above (you applied the class to the
div, not the anchor).

I think your intention is as follows:

div.topl a {
    color: #660;
    text-decoration: none;
}

Regards
--
Bert Doorn, Better Web Design
www.bwdzine.com
Fast-loading, user-friendly websites

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************





******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to