Link Color (removing the underline)

Discussion in 'HTML & Website Design' started by 8everything, Feb 12, 2007.

  1. #1
    Does anyone have a code where it changes the link colors to black without an underline? (I seem to have lost mine)

    Thanks :)
     
    8everything, Feb 12, 2007 IP
  2. Monty

    Monty Peon

    Messages:
    1,363
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    0
    #2
    a:link {
    color: #000000;
    underline: none;
    }
    
    Code (markup):
    something like that ?
     
    Monty, Feb 12, 2007 IP
  3. 8everything

    8everything Peon

    Messages:
    16,350
    Likes Received:
    903
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes! But do you have the whole full code? Thanks :)
     
    8everything, Feb 12, 2007 IP
  4. Themathon

    Themathon Peon

    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <style type="text/css">
    <!--
    a, a:hover, a:visited{
    color: #000000;
    text-decoration:none;
    font-weight:bold;
    }
    -->
    </style>


    .....hope this is of some help to u.
     
    Themathon, Feb 12, 2007 IP
  5. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #5
    If you can't understand where to put the code. Here is answer.

    Put it between <head> and </head>. :)
     
    YIAM, Feb 12, 2007 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Or just create a text file, save it with the .css extension (warning: do not put ANY HTML code inside the stylesheet) and then link to the file in your HTML like this:
    
    <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen">
    
    Code (markup):
    Be sure to preceed the closing bracket with a space and forward slash if you're using XHTML. Like so:
    
    <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen" />
    
    Code (markup):
     
    Dan Schulz, Feb 12, 2007 IP
  7. 8everything

    8everything Peon

    Messages:
    16,350
    Likes Received:
    903
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Works perfectly! Just what I was looking for. Thank you everyone :) I wish I had reps left for this 24 hours, but will do so once I can :)

    Cheers!
     
    8everything, Feb 12, 2007 IP