please help me to fix that css style

Discussion in 'CSS' started by crazy.works, Mar 17, 2009.

  1. #1
    hello,
    i use in my site on that css style between the head tags , to change the links color beside underline them on the all body .


    so i tried to move them to the css file with the other style to be able to edit the full style from the css file . but i didnt succeed .

    so please help me to move them to the css file with the same effect on the links

    thanks
     
    crazy.works, Mar 17, 2009 IP
  2. karthimx

    karthimx Prominent Member

    Messages:
    4,959
    Likes Received:
    127
    Best Answers:
    2
    Trophy Points:
    340
    #2
    a,
    a:hover,
    a:focus,
    a:active
    {
    text-decoration: none;
    }
     
    karthimx, Mar 17, 2009 IP
  3. crazy.works

    crazy.works Peon

    Messages:
    304
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks a lot
     
    crazy.works, Mar 17, 2009 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    Uhm, the pseudo-states (the part after the colon) inherit off the parent element... as such you should only have to say 'a' if you want to style ALL of them.

    a {
    text-decoration:none;
    color:#000;
    }

    That's it. You only state the substates after that IF they are going to have DIFFERENT values, not the same ones.
     
    deathshadow, Mar 17, 2009 IP
  5. crazy.works

    crazy.works Peon

    Messages:
    304
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    oh that is better and it gonna be more clear , thanks :)
     
    crazy.works, Mar 18, 2009 IP