links naturally becoming underlined

This is a discussion on "links naturally becoming underlined" within the Web Page Design section. This forum, and the thread "links naturally becoming underlined are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 10th, 2007, 17:53
Junior Member
Join Date: Apr 2007
Location: England
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
links naturally becoming underlined

Dear All,

When I make a link on my site (for instance a css controlled hover like this as part of a div.

<a href="#">Home</a>

I preview the page, and the link, which has the behaviour to turn red and underline itself, is already underlined, and goes purple when visited.

It is the same when I just create any old link on a site-It is always underlined, and goes purple when it has previously been visited...

How do i stop this??

Please help!

Thanks
Reply With Quote

  #2 (permalink)  
Old Apr 10th, 2007, 18:00
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: links naturally becoming underlined

change the text-decoration property to none

Code: Select all
a:link, a:visited, a:active {
  color: #090;
  text-decoration: none;
}

a:hover {
  color: #900;
  text-decoration: underline;
}
Reply With Quote
  #3 (permalink)  
Old Apr 10th, 2007, 18:10
Junior Member
Join Date: Apr 2007
Location: England
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Re: links naturally becoming underlined

Brilliant thanks!
Reply With Quote
  #4 (permalink)  
Old Apr 11th, 2007, 15:27
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,649
Thanks: 0
Thanked 7 Times in 7 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: links naturally becoming underlined

Important to note that you MUST use this order:

a:link
a:visited
a:hover
__________________
I've got <style> and .class
Reply With Quote
  #5 (permalink)  
Old Apr 13th, 2007, 23:53
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: links naturally becoming underlined

And this covers them all without the pseudo-selectors:

Code: Select all
a {
  color: #090;
  text-decoration: none;
}
Reply With Quote
Reply

Tags
css, links, underline

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Msie doesn't make my links links.. delusion Web Page Design 7 Nov 7th, 2007 08:05
PR4 links for sale...links in an excellent position agent14 Link Building and Link Sales 1 Mar 5th, 2007 21:33
Blured Links (image links) bruno89 Web Page Design 2 Jul 25th, 2006 14:48
leave link underlined after clicking monfu Web Page Design 9 May 29th, 2006 17:47
Different coloured links without modifying links? Webforumz Staff Web Page Design 12 Aug 29th, 2003 18:48


All times are GMT. The time now is 13:44.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43