English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

It looks great in Firefox, and terrible in Internet Explorer. Right now, I can get one to look good. If I change any of the command lines it effects one positively and the other gets messed up.

Is there a way to say make firefox read with say margin: -40px;
and not have that for internet explorer or something like that?

I'm a beginner learning HTML and CSS.

2007-04-11 02:40:27 · 3 answers · asked by Stick 4 in Computers & Internet Programming & Design

3 answers

You can do it in HTML using conditional statements, but only for Internet Explorer rather than Mozilla (it's okay, because it's Internet Explorer that looks wrong, not Mozilla). While this method is not as sophisticated as Javascript, it sure it a lot easier. :)

2007-04-11 03:35:29 · answer #1 · answered by strange times 2 · 0 0

Hello,
I use a "trick" not a real technique, I place deliberately an error on the css code which will be read by explorer but ignored by firefox.

Ex.

with:100px; width !explorer:110px;

the attribute "width" is repeated twice but the second time has a "!explorer" which makes no sense for the browsers (you could write whatever you like instead of "!explorer") but still Internet Explorer read it and and choose it.

I hope it will help!

If you like my answer please visit my blog ;-)
http://domainfree.blogspot.com/

2007-04-15 17:24:36 · answer #2 · answered by Andrea 2 · 0 0

Not in CSS no. But you can in Javascript.
Change the condition to write one tag with one style else write another tag with a different style.

2007-04-11 03:26:53 · answer #3 · answered by AnalProgrammer 7 · 0 0

fedest.com, questions and answers