Closed Thread
Results 1 to 9 of 9

Thread: Hyperlink underline

  1. #1

    Hyperlink underline

    Hey all,

    How do I get rid the underline of a hyperlink? On my site the underlining on the links look crappy. Take a look for yourself (the link is in my sig).
    Life is like being a virgin. You'll never know when you're going to get f***ed!

  2. #2
    NLC Bruce is a glorious beacon of lightBruce is a glorious beacon of lightBruce is a glorious beacon of lightBruce is a glorious beacon of lightBruce is a glorious beacon of lightBruce is a glorious beacon of light Bruce's Avatar
    Join Date
    Dec 2000
    Location
    Maine
    Posts
    12,147
    Code:
    <style>
    A:visited {text-decoration: none;}
    A:hover {text-decoration: none;}
    A:link {text-decoration: none;}
    A:active {text-decoration: none;}
    </style>
    ▀▄▀▄▀▄▀▄▀▄▀▄▀▄
    ▀▄▀▄▀▄▀▄▀▄▀▄▀▄

  3. #3
    Thx for the help. 1 more question where do I input the code, header or body?
    Life is like being a virgin. You'll never know when you're going to get f***ed!

  4. #4
    NLC Bruce is a glorious beacon of lightBruce is a glorious beacon of lightBruce is a glorious beacon of lightBruce is a glorious beacon of lightBruce is a glorious beacon of lightBruce is a glorious beacon of light Bruce's Avatar
    Join Date
    Dec 2000
    Location
    Maine
    Posts
    12,147
    head
    ▀▄▀▄▀▄▀▄▀▄▀▄▀▄
    ▀▄▀▄▀▄▀▄▀▄▀▄▀▄

  5. #5
    my names too long trenzterra is a jewel in the roughtrenzterra is a jewel in the roughtrenzterra is a jewel in the rough trenzterra's Avatar
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    10,061
    Originally posted by Phrozen
    head
    I put my code in the body section, but it works too. May I know whats happening?

  6. #6
    NLC Dusty is an unknown quantity at this point Dusty's Avatar
    Join Date
    Oct 2000
    Posts
    2,953
    I put my code in the body section, but it works too. May I know whats happening?
    It doesn't really matter where you put it, it's just more proper to put it in the head.
    I think I may have been here before... a long, long time ago... 599699 Unread Posts, you say?

    Ah, I found my old avatar. The hypnotic evil duck.
    It was 2002. Duck avatars were the style at the time.
    Long and fascinating story there. I'd tell you if I remembered it.

  7. #7
    anti-liberal keith is an unknown quantity at this point keith's Avatar
    Join Date
    Oct 2000
    Location
    Buttsville
    Posts
    2,375
    actually, if you want all your links minus the underline [active, visited, etc...], just use this:
    Code:
    <style>
    a {text-decoration:none}
    </style>
    w3rd

  8. #8
    Member -tuw- is an unknown quantity at this point
    Join Date
    Nov 2001
    Posts
    31
    <style>
    a { text-decoration: none }
    a:hover { text-decoration: underline }
    </style>

    this one works with IE but not in NS < 6.xx

  9. #9
    Member JdS is an unknown quantity at this point
    Join Date
    Nov 2001
    Location
    KUL, Malaysia
    Posts
    37
    my experience is that the order in which u write the style is important... i.e.

    1. a:link.class
    2. a:visited.class
    3. a:hover.class
    4. a:active.class

    if u don't stick to this order, the links in MSIE will be buggy especially when using 'class'
    J de Silva
    Learning Journal

Closed Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts