Enabling CSS on Firefox?

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

Enabling CSS on Firefox?

Postby rii namuras » Fri May 25, 2007 1:29 pm

(So I'm finally getting my website up, and though I've gotten the coding down and it works in IE, I primarily use Firefox, and it doesn't work there. I use a style.css document for the background, text, ect, and I've noticed that any other sites a style.css don't display what's in there. So I just get black text + white background in FireFox while in IE I get whatever they specified in the .css document.)

(Is there something I can do about this or do I just stamp a "best viewed in Internet Explorer" on the enter page?)
User avatar
rii namuras
 
Posts: 502
Joined: Thu Sep 08, 2005 9:00 am
Location: Hong Kong

Postby Debitt » Fri May 25, 2007 3:20 pm

So you use your style.css file by putting
Code: Select all
<link rel="stylesheet" type="text/css" href="style.css">
in the head tags, right? O~O Because it works just fine for me in Firefox when I do that.

Maybe you should try finding a CSS validator and running your code through there. IE is the only browser renders a lot of 'invalid' CSS - Firefox won't.
Image

[SIZE="5"](*゚∀゚)アハア八アッ八ッノヽ~☆[/SIZE]
[SIZE="1"]DEBS: Fan of that manga where the kid's head is on fire.[/SIZE]
User avatar
Debitt
 
Posts: 3654
Joined: Sun Feb 01, 2004 10:00 am
Location: 並盛中学校

Postby rii namuras » Fri May 25, 2007 3:31 pm

(While I didn't have that "type text/css", I put it in and it still doesn't work.)

(As a newbie to CSS, what is a CSS validator?)
User avatar
rii namuras
 
Posts: 502
Joined: Thu Sep 08, 2005 9:00 am
Location: Hong Kong

Postby blkmage » Sat May 26, 2007 3:54 am

A CSS validator checks for valid CSS, so it checks for whether your CSS meets the CSS1 or CSS2 specification defined by the World Wide Web Consortium. The reason for this is because different browsers render CSS differently, so the W3C created a spec for browsers to follow. The intention is that as long as your CSS is valid, it should display fairly much the same across all Standards-compliant browsers. Currently, the biggest non-compliant browser has been IE6. I'm not too sure about IE7, it's been a while since I've written any web pages.

http://jigsaw.w3.org/css-validator/

Also, would you mind posting your CSS here?
User avatar
blkmage
 
Posts: 4529
Joined: Mon May 03, 2004 5:40 pm

Postby rii namuras » Sat May 26, 2007 7:50 am

( ::ahem:: I sent it to Kokoro, who told me to take out a comma. It works perfectly now.)

(But I will definitely look into the validator - it'll come in handy, I'm sure.)
User avatar
rii namuras
 
Posts: 502
Joined: Thu Sep 08, 2005 9:00 am
Location: Hong Kong

Postby Debitt » Sat May 26, 2007 8:33 pm

:3 Glad that fixed it!
Image

[SIZE="5"](*゚∀゚)アハア八アッ八ッノヽ~☆[/SIZE]
[SIZE="1"]DEBS: Fan of that manga where the kid's head is on fire.[/SIZE]
User avatar
Debitt
 
Posts: 3654
Joined: Sun Feb 01, 2004 10:00 am
Location: 並盛中学校

Postby MyrrhLynn » Wed Jun 06, 2007 6:08 am

Yeah IE is more forgiving with bad CSS coding then Firefox. I've lost track of how many times I've been convinced Firefox is broken, only to realize that I have a quote wrong or something along those lines which is causing my image to not show up. ^_^; Ooooh I didn't have that link to the validator so that should be fun to use!
Image

:x:Anti Yaoi Fans :x: Daystar Design :x: MyrrhLynn.NET :x: Need an avatar? Then Click here!

"Another Sane Sig brought to you by MOES."
User avatar
MyrrhLynn
 
Posts: 777
Joined: Sun Jun 29, 2003 12:00 pm
Location: USA


Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 175 guests