Forum Moderators: open
I have displayed this page fine in IE and Netscape before, today I downloaded Firefox and this does not seem to support css.
This is my stylesheet.
.menu {text-align:"Center"; background-color:"#A5DAFF"; vertical-align: "top"; }
.title {background-color:"FFC2FD"; vertical-align: "top"; }
if you view the page with IE it looks fine even using CSS, if you view it with FF it looks awful.
Please, suggestions.
<Sorry, no personal links. See TOS [webmasterworld.com]>
[edited by: tedster at 6:24 am (utc) on July 26, 2004]
The first thing you should do - before a moderator does it for you - is remove that link. See item 13 in the TOS [webmasterworld.com].
Then for anyone to help, please post a bit of the relevant markup.
As for this:
I have displayed this page fine in IE and Netscape before, today I downloaded Firefox and this does not seem to support css.
But to the problem at hand, your CSS is full of errors. You don't quote property assignments in css the way you do html attributes. You should have something like:
text-align:center"; You may want to check out the resources in the css forum's charter [webmasterworld.com] (at the bottom of the page) and the css forum library [webmasterworld.com] for more information on css syntax.
-B
[edited by: bedlam at 6:38 am (utc) on July 26, 2004]
What is your DTD? And have you validated your HTML [validator.w3.org] and CSS [jigsaw.w3.org] with the W3C's free validation service? Given bedlam's observations, I would assume you have not.
Validation is step number one - and congratulations on moving to support standard browsers. It is a learning curve, but soon you will appreciate it very much, I think. It's quicker to develop in Firefox and then fix any little problems you seen in IE than it is to begin in IE, which is a) non-standard and b) hides errors from you that you really should know about.
.menu {text-align:"Center"; background-color:"#A5DAFF"; vertical-align: "top"; }
.title {background-color:"FFC2FD"; vertical-align: "top"; }
change to this..
.menu {text-align: center; background-color: #A5DAFF; vertical-align: top; }
.title {background-color: #FFC2FD; vertical-align: top; }
that is do not use quote marks in CSS rules and also there was a missing # before one of the colors..
IE is just being forgiving as usual ;)
Suzy
[jigsaw.w3.org...]
The validator would have shown all of the errors in this case.