Results 1 to 3 of 3

Thread: [Resolved] Simple CSS Question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    England
    Posts
    135

    [Resolved] Simple CSS Question

    Hi,

    I am trying to make a new website work properly in both IE and FireFox and I am coming up against a few problems.

    I have the following in an external CSS file :

    .copyright, .copyright a:link, .copyright a:active, .copyright a:visited,
    {
    font-family: Arial;
    font-size: 7pt;
    font-weight: bold;
    color: #FFFFFF;
    text-decoration: none;
    }

    .copyright a:hover
    {
    color: #FFFF33;
    }

    and the following code on the HTML page :

    HTML Code:
                <tr class="copyright">
                   <td align="center" class="copyright"> 
                      <a href="privay.asp">Privay Policy & Accessibility</a>
                   </td>
                </tr>
    This works fine in IE, and the colour changes to yellow, but in FireFox it doesnt work and in fact it doesnt format any of the text at all in the fonts, etc.

    I am sure it's a basic error, but I cant figure out what it is - can someone help here?

    Cheers,
    Sparky.
    Last edited by Sparky; Jun 7th, 2005 at 09:06 AM. Reason: Resolved

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Simple CSS Question

    Set the class once and only once.
    If necessary, fully qualify the copyright class too...

    So, if you decide to keep it in the tr...
    Code:
    tr .copyright, tr .copyright a:link, tr .copyright a:active, tr .copyright a:visited,
    {
    font-family: Arial;
    font-size: 7pt;
    font-weight: bold;
    color: #FFFFFF;
    text-decoration: none;
    }
    
    tr .copyright a:hover
    {
    color: #FFFF33;
    }
    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    England
    Posts
    135

    Re: Simple CSS Question

    Thanks,

    I just found out that not only had I made that error, which I already knew I shouldnt have made, but also the comma at the end of my CSS info was screwing up the page in firefox.

    Cheers,
    Sparky.
    Last edited by Sparky; Jun 7th, 2005 at 09:05 AM. Reason: my mistake

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width