CSS link issue

Discussion in 'CSS' started by Oribasan, Jul 2, 2006.

  1. #1
    Hi,

    I am a newbie to CSS and have a question.

    I have created a CSS style to some text, but when i make the text into a link it seems to disregard the style. Some parts of the style are still there, the colour and font are correct but it seems to be considerably smaller that what i have selected the style to be.

    Your help is much appreciated.

    Thanks.
     
    Oribasan, Jul 2, 2006 IP
  2. Oribasan

    Oribasan Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sorry. I assumed all coders were psychic.

    This is the code

    <td bgcolor="c1f1c6" class="Navigation"><a href="services.htm">Services</a></td>

    and this is the style code

    }
    .Navigation {
    font-family: Arial;
    font-size: 14px;
    font-style: normal;
    font-weight: normal;
    color: 124435;
    }
     
    Oribasan, Jul 2, 2006 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    I don't see anything obviously wrong except the {color: 124435;} should be {color: #124435;}.

    There is the possibility that a selector of higher specificity is over-ruling some of those properties. We would need to see the whole page. Or, you could use the Firefox developer extension to view the style rules that are being applied.

    cheers,

    gary
     
    kk5st, Jul 2, 2006 IP
  4. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #4
    You've also missed the hash on the td bgcolor. Also try moving the background colour to the CSS if that's possible. Like Gary says, it's hard to see what's going on there. At a guess, have you styled the 'a' element elsewhere?
     
    AdamSee, Jul 3, 2006 IP