Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Senior Member
    Join Date
    Aug 2003
    Posts
    194
    Member #
    2782
    I am using the following CSS code for my links:

    Code:
    a:link {
    	text-decoration: none;
    	color: #666666;
    }
    
    a:hover, a:active {
    	text-decoration: none;
    	color: #99ccff;
    }
    
    a:visited {
    	text-decoration: none;
    	color: #666666;
    }
    For some reason, some of my links, both in IE and Firefox show the link as underlined, and when you hover, it is not underlined. What gives?

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    Show us a link to your site.

    I think you have some nested <div>'s where the CSS rule you have won't apply.
    Hard to tell without seeing the actual page.


  4. #3
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Try changing your link style to [minicode]a, a:link[/minicode].

  5. #4
    Senior Member
    Join Date
    Aug 2003
    Posts
    194
    Member #
    2782
    Cool - that worked Shadowfiend.
    Considering that I am relatively new to CSS, can you explain to me why?

  6. #5
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Depends. If you had an [minicode]a[/minicode] element that didn't actually link anywhere (typically either no href or an empty href, though this might actually include ones that just point to anchors), then it wouldn't be affected by the [minicode]:link[/minicode] pseudo-class. If that wasn't the case, on the other hand, I'm honestly not sure. It's probably just a browser quirk in that case. I usually list [minicode]a[/minicode] along side [minicode]a:link[/minicode] just to be sure.

  7. #6
    Senior Member Shani's Avatar
    Join Date
    Nov 2004
    Posts
    1,140
    Member #
    8171
    I think [minicode]a:link[/minicode] is required by IE6, though other browsers understand just plain [minicode]a[/minicode].
    Shani

    I have an eye for detail like you'd never believe.

  8. #7
    Senior Member hyperair's Avatar
    Join Date
    May 2005
    Posts
    452
    Member #
    9892
    IE6 interprets [minicode]a[/minicode] as [minicode]a:link[/minicode], because it's annoying like that.
    Hyperair

  9. #8
    Senior Member
    Join Date
    Aug 2003
    Posts
    194
    Member #
    2782
    Gotcha. I did have some empty href that I was using as link placeholders.
    Thanks for your help.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:02 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com