Reply
Really basic CSS + Firefox question
Old 05-21-2006, 11:57 PM Really basic CSS + Firefox question
Novice Talker

Posts: 6
Hi folks,

I've only just discovered CSS and have been implementing it on my website over the last couple of weeks. However I'm finding a really elementary problem with Firefox, which, from what I've read, shouldn't be happening:

Even with the most basic script:

<style type="text/css">
<!--
a:active { text-decoration: underline}
a:hover { text-decoration: underline}
a:link { text-decoration: none}
a:visited { text-decoration: none}
-->
</style>

Firefox shows the links without underlining, but doesn't add the underlining when hovering or clicking on the links. IE does it OK.

What am I missing?
Please help!

Shen
Aum Mani Padme Hum
shen is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-22-2006, 12:05 AM Re: Really basic CSS + Firefox question
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Converting Video For YouTube
Posts: 2,339
Name: Keith Marshall
Location: West Hartford, CT
It could relate to many issues:

1) The links could be assigned another class witch may have other styles set

2) If the stlesheet is an external file, is it being linked in the header?

3) The paged is displaying a cached version of the page and/or stylesheet.

I think the problem is #3 since it is working in IE, just force a refresh by pressing Ctrl + F5

__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-22-2006, 01:01 AM Re: Really basic CSS + Firefox question
Ultra Talker

Posts: 253
Location: Auckland, New Zealand
There's a specific CSS ordering which I've done below.

HTML Code:
<style type="text/css">
  a:link { text-decoration: none; }
  a:visited { text-decoration: underline; }
  a:hover { text-decoration: underline; }
  a:active { text-decoration: none; }
</style>
Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.

Last edited by mastercomputers : 06-05-2006 at 09:57 PM.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 05-22-2006, 01:26 PM Re: Really basic CSS + Firefox question
LadynRed's Avatar
Super Moderator

Posts: 6,718
Location: Tennessee
As noted above, they must be in a specific order. Think "LoVeHAte"
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is online now
Reply With Quote
View Public Profile
 
Old 05-24-2006, 01:57 AM Re: Really basic CSS + Firefox question
Novice Talker

Posts: 6
Thanks folks,
That worked. Unfortunately it seems Dreamweaver isn't aware of LoVeHAte! My CSS code is generated by Dreamweaver. Checking the Dreamweaver code with the CSS validator (w3.org) picked up many errors, but not this one.

Shen
shen is offline
Reply With Quote
View Public Profile
 
Old 05-24-2006, 11:24 AM Re: Really basic CSS + Firefox question
Mooofasa's Avatar
Defies a Status

Posts: 1,612
Name: Michael (mik) Land
Location: England
That's because it isn't an error nor a warning.

The problem with WYSIWYG editors, is that errors and warnings will always be created, because the developers would rather throw it out into the market without checking everything works accordingly.

And the linke method should actually be:

Link
Visited
Focus
Hover
Active

The new one being FOCUS.
__________________
Tumblings.co.uk - Tumblog with thoughts, quotes, links, videos, images and my creations.
Opera Browser - The best free web browser.
Opera Dev Tools - Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Reply     « Reply to Really basic CSS + Firefox question
 

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


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

 


Page generated in 0.13735 seconds with 12 queries