PDA

View Full Version : CSS that only IE can see?


Jittor
10-09-2007, 08:10 PM
Is there CSS code that can be written that only IE can see?

I ask because I developed a spry header and added a margin-top of 145px so it would be in line with my header graphic. In IE it works great but in FF the margin-top is added to the very top of the page giving it a white area of 145px. So, then I tried removing the margin-top and adding a padding-top of 145px and that looks great in FF but add a big gap below the menu pushing everything after the header down 145px. I can't figure it out and need some fresh eyes to look at it. By the way there is .asp so don't freak out on me. The asp is not the problem it's the CSS.

Will post CSS code if easier.

http://www.petsincredible.com/Welcome_test.asp

Did I ever tell you guys how much I hate IE :)

Jittor
10-09-2007, 08:48 PM
Well, it seems to be working now. That's weird, I tried something I am pretty sure I had already tried, but this time it worked. You got me?

m1a2x3x7
10-09-2007, 09:30 PM
i know what you mean...im ready for ie6 to die

Jittor
10-09-2007, 09:48 PM
If I was Rambo I would take care of IE with a 50 cal. and maybe a grenade or two.

If I was Chuck Norris, I would look at IE and it would shrivel up and disappear into a cloud of dust.

domedia
10-10-2007, 04:28 PM
When the boogieman goes to bed, he checks under the bed for Chuck Norris x-D

Jittor
10-10-2007, 04:39 PM
LOL - That's great!

domedia
10-10-2007, 05:23 PM
I guess I should help you with your original question :)
http://www.quirksmode.org/css/condcom.html

Jittor
10-10-2007, 05:37 PM
ahhhh, very nice, very nice.

Jittor
10-10-2007, 05:48 PM
Actually that's very nice. You can even put in the code to pull an additional Style sheet to use if it is IE. I really like this, thanks!

domedia
10-10-2007, 06:41 PM
Yes, conditional statements are great in that aspect. Another way of doing it, is utilizing CSS hacks that only IE understands.