Web Hosting Talk







View Full Version : how to specify css code only for IE?


Draco
12-04-2005, 08:58 PM
Hello there
I've seen some css codes (can't remember where) where there's a specific code that its active only when you see the website using Internet Explorer,otherwise not,Is there someone who might provide this code?.

And another situation,I got this http://www.outnloud.net/m/ which viewed on Firefox seems to be what I want, BUT once you view it on IE its a very different thing, any ideas on how to solve this?

Thanks in advance for any tip on this.

WebDesignGold
12-04-2005, 10:41 PM
As an example for IE specific style (hack). Use in the head section:
<!--[if IE]>
<style type="text/css">
#container {height:100%}
</style>
<![endif]-->

You could use this code when in the regular style sheet you have specified:
min-height:100%; which IE doesn't understand.

Draco
12-04-2005, 11:16 PM
As an example for IE specific style (hack). Use in the head section:
<!--[if IE]>
<style type="text/css">
#container {height:100%}
</style>
<![endif]-->

You could use this code when in the regular style sheet you have specified:
min-height:100%; which IE doesn't understand.

thank you
what I did was to assign another stylesheet specially for IE and changed what i had to, it worked, but i'll consider what you wrotte about height:100% :D thanks again