1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Links In External CSS

Discussion in 'CSS' started by gobbly2100, Jun 22, 2007.

  1. #1
    I am trying to make links in a list change colour and stuff but how do I do that?

    This is what I found on doing it but it don't seem to work.

    a:link {color: #FF0000}     /* unvisited link */
    a:visited {color: #00FF00}  /* visited link */
    a:hover {color: #FF00FF}   /* mouse over link */
    a:active {color: #0000FF}   /* selected link */
    Code (markup):
    How do I put that in this which is an external CSS?

    #menu li a {
    }
    Code (markup):

     
    gobbly2100, Jun 22, 2007 IP
  2. ninjamuk

    ninjamuk Peon

    Messages:
    305
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    #selector a{
    color: #FFFFFF;
    text-decoration: underline;
    }
    
    #selector a:hover{
    color: #333333;
    text-decoration: none;
    }
    Code (markup):
    In the code above, all links inside an tag with id='selector' will be white with an underline. When you hover your mouse over them, they will turn grey and have no underline.

    You can do a lot more with the code, but that'll get you the concepts.
     
    ninjamuk, Jun 22, 2007 IP
  3. gobbly2100

    gobbly2100 Banned

    Messages:
    906
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Awsome, thanks, I got the idea how it works now.

    Thanks again buddy! :)
     
    gobbly2100, Jun 22, 2007 IP