Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
a:hover doesn't work for some links...
Old 06-28-2009, 01:46 AM a:hover doesn't work for some links...
Experienced Talker

Posts: 46
Name: Jethro Williams
Trades: 0
This is a fairly insignificant problem that I have, but it is bugging the f##k out of me that I can't figure out why it's happening.

In my stylesheet, I have the code:

a:hover {background-color:#FFFFFF;}

applicable to the entire website. And it works fully, except there are 4 single links on my homepage, that the background doesn't turn white when I hover over them. And I have spent hours looking over my code, testing different things, and I cannot figure out why this is happening just to these 4 links. It's doing my head in!

So if you have the time to help me figure out why this is, that would be greatly appreciated. The 4 links in question on my homepage are: "Latest blog entries" "Latest photos" "Galiano Island" and "Victoria". These are the only links on the entire site where this doesn't work.

Oh and what confuses me even more, is that it works fine in IE. Chrome and Firefox though: No dice.

The page in question is: http://www.jrosworld.com/index.html and the stylesheet is at: http://www.jrosworld.com/masterss.css.

Thankyou... please!!!
__________________

Please login or register to view this content. Registration is FREE
jrosworld.com is offline
Reply With Quote
View Public Profile Visit jrosworld.com's homepage!
 
 
Register now for full access!
Old 06-28-2009, 08:05 AM Re: a:hover doesn't work for some links...
StylaStyla's Avatar
Mad Man

Posts: 401
Name: Styla
Location: City of London
Trades: 0
Although I can't explain WHY it doesn't work, try adding this to your stylesheet

Code:
h2 a:hover {background-color:#FFFFFF;}
__________________
Freelance Graphic Designer not for hire
StylaStyla is offline
Reply With Quote
View Public Profile Visit StylaStyla's homepage!
 
Old 06-28-2009, 04:01 PM Re: a:hover doesn't work for some links...
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Your problem stems from your INVALID coding of those links - this is wrong:

Quote:
<a href="blog.html"><h2>Latest blog entries</h2></a>

<a href="gallery/can_victoria/gallery_index.html"><h3>Victoria</h3></a>
It is INVALID to wrap a block-level element - the HEADINGS- inside an INLINE element - the <a>'s. Put the <a> INSIDE of the Hx elements and the problem should right itself.

VALIDATE your code!
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-28-2009, 09:15 PM Re: a:hover doesn't work for some links...
Experienced Talker

Posts: 46
Name: Jethro Williams
Trades: 0
Awesome!!!

Thanks for the help. That's fixed it.
__________________

Please login or register to view this content. Registration is FREE
jrosworld.com is offline
Reply With Quote
View Public Profile Visit jrosworld.com's homepage!
 
Reply     « Reply to a:hover doesn't work for some links...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14778 seconds with 12 queries