|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS Classes not working in Mozilla
Hi, I've been working with a webpage in both IE and Mozilla, and all of a sudden, Mozilla's decided that it's not going to give the properties of classes to the elements that I assign them to. Here's the style section of the page if this helps any:
<style type="text/css"> A {text-decoration: none; font-family: Verdana, Arial, Helvetica; color: #FFFFFF; font-size: 12}; A:link {text-decoration: none; font-family: Verdana, Arial, Helvetica; color: #FFFFFF; font-size: 12}; A:hover {text-decoration: underline; font-family: Verdana, Arial, Helvetica; color: #FFFFFF; font-size: 12}; .HiddenMenu { position: absolute; top: 88; visibility: hidden; background: #CC0000; width: 200;}; .Image {position: absolute;}; </style> The problem I'm sure is occuring with the HiddenMenu class, but I think it is also happening for the Image class. If anyone has any ideas why this is happening, it would be helpful. Otherwise I'll have to *cringe* copy the style into each individual element, which depletes the purpose of a class in the first place. Thanks, Eric |
|
#2
|
||||
|
||||
|
You have extraneous semi-colons (;) at the end of each style declaration:
Code:
.foo
{ /* begin style declaration */
font-size: small;
} /* end style declaration -- NO SEMI COLON */
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
|
#3
|
|||
|
|||
|
Wow... It's the small stupid things that make the biggest differences. Thank you very much.
Eric PS. You know, it makes me wonder why no one in on the Mozilla project has made ammends to this bug. Maybe I'll give them a buzz. |
|
#4
|
||||
|
||||
|
Quote:
Actually, Mozilla is one of the only browsers available that nearly perfectly meets every standard set out by the W3C. Its Internet Explorer that needs to clean up its CSS support. Email Microsoft, not Mozilla.
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever. Analyze twice; hack once. The world's first existential ITIL question: If a change is released into production without a ticket to track it, was it actually released? About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect - Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire |
|
#5
|
|||
|
|||
|
Quote:
This is not a bug. Now IE allowing bad code, that's a bug. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS Classes not working in Mozilla |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|