css layout ok. But what happens with mozilla???

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
basdog22
Forum Contributor
Posts: 158
Joined: Sun Nov 30, 2003 3:03 pm
Location: Greece

css layout ok. But what happens with mozilla???

Post by basdog22 »

Ok i made my first NO TABLES pure CSS layout site it looks great with IE Opera needs some work but i also tried mozilla firebird on it...

It sucks. It displays only text no layout nothing.

What i am trying to say is:

How come everyone talking about IE not supporting css and nobody says that for firebird???

I am not an MS fan but this drives me nuts :evil:

How can i make my site look simular an all browsers???
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Firebird is rendering the page correctly but IE is not. Quite astonishing really that MS can't spend some of their gazillions on a decent web browser.

Try googling around for CSS tutorials. This might be a good place to start: http://www.alistapart.com/articles/.
basdog22
Forum Contributor
Posts: 158
Joined: Sun Nov 30, 2003 3:03 pm
Location: Greece

Post by basdog22 »

So what i read from a list apart i managed to understand that Opera and Firebird might need the http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd file to render the page correctly

Is that true???

cause i test my page locally
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

It's probably more likely to be your CSS and not the DOCTYPE.

You've raised an interesting question about local servers - afraid I don't know the answer.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

remember, when mozilla and opera agree and ie doesn't, then you're using non-standards or ie is compensating for a mistake.

there ARE things that ie supports that are not in the css standard that people list with css. for instance: all the cursor things
basdog22
Forum Contributor
Posts: 158
Joined: Sun Nov 30, 2003 3:03 pm
Location: Greece

Post by basdog22 »

I am afraid that my firebird installation is wrong

When i open a file from the open menu in firebird it looks ok but when i browse to it ... it sucks. I made my scripts look the same on both IE and Opera so 8) 8) 8) 8) 8)

I will install mozilla now and i will test it

Thanks for your help
basdog22
Forum Contributor
Posts: 158
Joined: Sun Nov 30, 2003 3:03 pm
Location: Greece

Post by basdog22 »

Damn the same with mozilla 1.5
:evil:

I get:
Error: The stylesheet http://127.0.0.1/index/testsite/style.css was not loaded because its MIME type, "text/html", is not "text/css".
Now i think this is why mozilla and firebird don't display my page ok.

I also saw another message for another site:
Warning: The stylesheet http://127.0.0.1/index/Sites/style.css was loaded as CSS even though its MIME type, "text/html", is not "text/css".
How can mozilla load the same stylesheet on one site and not at the other one???

MIME type??? Help me with this one :!:
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

css has the mime type text/css

for some reason it's being sent as text/html

mozilla is smart enough to know something is wrong and alert you since there could be someone doing something you don't want. it's also more helpful as a dev tool as a result.


how are you calling the css???

<link rel="..."> or <style type="text/css"><!-- @import url(stylesheet.css); --></style>

the first... i'm not sure how to denote type witht hat style, i use the second so that if i want to try something to override as a test i can simply toss it in temporarily in the page call. the second is called as a text/css mime type becasue it's using css' call to an external style sheet, which can only use the text/css mime type.
Skyzyx
Forum Commoner
Posts: 42
Joined: Fri Feb 14, 2003 1:53 am
Location: San Jose, CA

Post by Skyzyx »

This topic was covered and answered in another forum:
http://www.codingforums.com/showthread. ... adid=25807

Hope this helps!
Post Reply