I'm using an internal style sheet for my site, and only a few of the parameters register on firefox, including parameters for anchor text, font colors, scrollbar colors, etc. What's going on? My protype index page, which looks like crap in Firefox
.menubg {bgcolor:"black";background-image: url("http://www.exclusivefreegames.com/images/tiledmenu.jpg");} a {text-decoration:"none";color:"yellow"} font {color:"white";face:"Veranda"; size:"3"} td {color:"white";valign:"top";align:"left"} body { bgcolor:"000000"; background-image: url("http://www.exclusivefreegames.com/images/slash.jpg"); scrollbar-face-color: 555555; scrollbar-highlight-color: CCCCCC; scrollbar-3dlight-color: 333333; scrollbar-darkshadow-color: 222222; scrollbar-shadow-color: 333333; scrollbar-arrow-color: 000000; scrollbar-track-color: 888888; } Code (markup): should be .menubg { bgcolor: black; background-image: url("http://www.exclusivefreegames.com/images/tiledmenu.jpg"); } a { text-decoration: none; color: yellow } font { color: white; face: Veranda; size: 3 } td { color: white; valign: top; align: left } body { bgcolor: #000000; background-image: url("http://www.exclusivefreegames.com/images/slash.jpg"); scrollbar-face-color: #555555; scrollbar-highlight-color: #CCCCCC; scrollbar-3dlight-color: #333333; scrollbar-darkshadow-color: #222222; scrollbar-shadow-color: #333333; scrollbar-arrow-color: #000000; scrollbar-track-color: #888888; } Code (markup):
You forgot to add # in front of colorcodes and you shouldn't put quotes arround values in CSS (except for the background image location or fontnames with multiple words like "Trebuchet MS") .
you need the 'web developer' extension for firefox and use the 'validate css' option. It comes in handy a lot for me.
I have the same problem.. I really want to use firefox (has some cool features) but I cannot view my own site on firefox so I've stuck with IE6.0 All that happens is the CSS navigation menu's at the left hand side and top are not working properly, and I'm assuming its something I've done wrong in the css file. I'd appreciate anyones help on this one! Cheers, Darren
[color=red].menubg { bgcolor: black; background-image: url("http://www.exclusivefreegames.com/images/tiledmenu.jpg"); }[/color] Code (markup): There's no bgcolor property in CSS. It is better to use relative URLs instead of absolute ones - it makes the stylesheet portable (e.g. if you ever change your domain name or just want to reuse the stylesheet): [color=green].menubg { background-color: black; background-image: url("/images/tiledmenu.jpg"); }[/color] Code (markup): [color=red]font { color: white; face: Veranda; size: 3 }[/color] Code (markup): It is strongly recommended by W3C to provide alternative fonts. Remember some visitors don't have fonts you have on your machine. There's no properties font or size. Here's how this selector should look instead: [color=green]font { color: white; font-family: Veranda, sans-serif; font-size: medium; }[/color] Code (markup): It is also illegal to quote keywords, such as "red". For example, this is *not* a valid CSS selector: [color=red]p {color: "red";}[/color] Code (markup): In this example "red" is a string, not a keyword. This selector should look like this: [color=green]p {color: red;}[/color] Code (markup): You can use W3C CSS validator: http://jigsaw.w3.org/css-validator/ J.D.