Log in

View Full Version : How to create CSS for all browsers?



web.designer.iq
12-11-2006, 12:00 PM
Hi,
I want to creating CSS for all browsers:
IE, FireFox, Netscape Navigator etc...
what's the right methods?
how to star?
i have good information about CSS , but i have a problem with compatible with all browsers! for example: my web site is working 100% but on FirFox 80% !!!!!!!!!
any idea or information please?
thanks

BLiZZaRD
12-11-2006, 01:19 PM
run it through a validator (http://jigsaw.w3.org/css-validator/) Fix the errors and warnings that come up and it should be good to go.

If not, post specifically what you are having problems with.

mwinter
12-11-2006, 07:34 PM
I want to creating CSS for all browsers:
IE, FireFox, Netscape Navigator etc...
what's the right methods?

Start by authoring according to the HTML 4.01 and CSS 2/2.1 specifications. Ensure that you trigger "Standards" mode by including a complete document type declaration (DOCTYPE, including URI) and check your work primarily against browsers like Firefox and Opera. This will help you see what you're really asking the browser to render.

If MSIE shows something different than other, better browsers then you may need to write rules especially for it. These can be added to a separate style sheet included using Microsoft's conditional comments.



for example: my web site is working 100% but on FirFox 80% !!!!!!!!!

That typically means that you're invoking rendering bugs in IE that other browsers aren't emulating.

Mike

Twey
12-11-2006, 09:31 PM
Fix the errors and warnings that come up and it should be good to go.If it's working in IE but not Firefox, I suspect that validating will break it completely :) However, some things have to get worse before they can get better.