Seemingly equivalent links are showing up in different colors!

Discussion in 'CSS' started by cavemanlawyer15, Sep 4, 2007.

  1. #1
    I have a CSS problem, I'm sure it's a pretty obvious solution.

    Notice how on this page the links are blue?
    http://www.clicksharpmarketing.com/beta/Superfans/history.html

    And on this one, they're orange...and rather illegible?
    http://www.clicksharpmarketing.com/beta/Superfans/blog.html
    http://www.clicksharpmarketing.com/beta/Superfans/site_map.html

    What am I not seeing here?!?!?

    Thanks for your help
    PB
     
    cavemanlawyer15, Sep 4, 2007 IP
  2. GWiz

    GWiz Peon

    Messages:
    359
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is responsible for your problem. In your CSS, find this:
    li a, #sidebar a {
        color: orange;
        text-decoration: none;
        border-bottom: 1 px solid orange;
    }
    Code (markup):
    Change the color, or remove li a, since the text, including the link is surrounded by a "li" tag, meaning the code above will be applied.
     
    GWiz, Sep 5, 2007 IP
  3. cavemanlawyer15

    cavemanlawyer15 Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks very much. If you have a web site, I'll happily provide an inbound link as a thank you.

    Out of curiosity -- what is the difference between <li> and <li a>?
     
    cavemanlawyer15, Sep 5, 2007 IP
  4. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #4
    li is the list element. The a stands for "anchor" an is a clickie-link of some kind.

    So in the css, you can have code for just stuff sitting in a list, and something else for links/clickies sitting in a list.
     
    Stomme poes, Sep 5, 2007 IP
  5. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    LI actually stands for List Item. It's easier to remember tags and the differences among them if you know what they stand for :)
     
    Gordaen, Sep 6, 2007 IP