SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member Pmcd9's Avatar
    Join Date
    Jan 2009
    Location
    Houston, TX
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Sudo Class Problem

    I have my sudo classes and I also have alternate sudo classes for situational styling. The situational styling seems to be working except for the color on the hover sudo class.

    Here are the sudo classes...
    Code:
    a.headerLink:link     {
        text-decoration:none;
        color:#88888b;
    }
    
    a.headerLink:hover     {
        text-decoration:underline;
        color:#000;
    }
    
    a.headerLink:active     {
        text-decoration:underline;
        color:#000;
    }
    
    a.headerLink:visited     {
        color:#88888b;
    }
    And here is the code where it is applied
    Code:
         
                         <div class="header">    
                            <a class="headerLink" href="#">other headlines</a>
                            <hr />
                        </div> <!-- header -->
    And here is where it appears
    Artcar Nation | Home
    The code appears near the top of the left column.

    Oddly enough, it's working in IE, but not firefox.

    I don't know what is wrong with my code. Please help.
    Thanks.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,112
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    It matters what order you put your pseudo classes in. There's a handy rule of thumb: LoVe, HA!

    That is:
    :link :visited :hover :active

    Try putting them in that order and see if it fixes things.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  3. #3
    SitePoint Member Pmcd9's Avatar
    Join Date
    Jan 2009
    Location
    Houston, TX
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well son of a gun. Thanks, ralph.m. Had never heard of the LoVE, HA! rule. It works


Bookmarks

Posting Permissions

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