Reply
Gah Valid CSS XHTML, Works in IE not in firefox
Old 01-24-2005, 06:01 AM Gah Valid CSS XHTML, Works in IE not in firefox
Junior Talker

Posts: 2
G'day

This problem has been driving me insane. I've validated my css & XHTML (1.0 Transitional) and it all checks out okay. Firefox is rendering in standards compliant mode, so it should just work, right ?

All I am trying to do is apply a style to a link who has a particular class. IE:

This Link:
<a class="button" href="http://www.yahoo.com/">Yahoo</a>

Should have this style:

a.button:link {
background-color: #00a7e9;
color: #000000; }


Any ideas ?
f001error is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 01-24-2005, 01:50 PM
faze1's Avatar
Ultra Talker

Posts: 389
Hello and welcome to the forum!

I'm, guessing your problem is the that the link displays incorrectly after it has been visited, try adding a bit more code.

Code:
a.button:link, a.button:visited {
background-color: #00a7e9;
color: #000000; }

a.button:hover, a.button:active {
background-color: #00a7e9;
color: #ffffff; }
I hope that answers your question. If not post a link to your site and I'll take a closer look.

Cheers,
__________________
[size=2]Faze1.net - Webhosting - Focusing on quality service
faze1 is offline
Reply With Quote
View Public Profile Visit faze1's homepage!
 
Old 01-25-2005, 06:18 AM
Junior Talker

Posts: 2
Thank you faze1 !

That solved it


Can't believe it was something so simple...late nights + css = silly mistake

Thank you !
f001error is offline
Reply With Quote
View Public Profile
 
Old 01-25-2005, 01:27 PM
NateDogg's Avatar
Extreme Talker

Posts: 163
Believe me, it happens to all of us Glad it was fixed
__________________
Nathan

Become an affiliate
Web Design Web Hosting
NateDogg is offline
Reply With Quote
View Public Profile
 
Old 01-25-2005, 02:14 PM
faze1's Avatar
Ultra Talker

Posts: 389
I'm glad that helped, Nate couldn't say it any better, it happens to all of us.

Cheers,
__________________
[size=2]Faze1.net - Webhosting - Focusing on quality service
faze1 is offline
Reply With Quote
View Public Profile Visit faze1's homepage!
 
Reply     « Reply to Gah Valid CSS XHTML, Works in IE not in firefox
 

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

vB 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.12531 seconds with 13 queries