Previous Message
Next Message

Use of !ie and !important

Sent by Ben Fider on 6 January 2008 17:05


Create stylesheets with the css you want to feed IE6 and IE7.  Then put
conditional comments in the head of your page:

<!--[if gte IE 6]><link href="/css/ie6.css" rel="stylesheet" media="screen,
projection" type="text/css" /><![endif]-->

<!--[if gte IE 7]><link href="/css/ie7.css" rel="stylesheet" media="screen,
projection" type="text/css" /><![endif]->

On Jan 6, 2008 1:38 AM, Slob Jones [EMAIL-REMOVED]> wrote:

> Let me post the question properly.
>
> The hack !important works in IE6 but not in IE7.
>
> Is there a hack -- or perhaps another routine -- that will work in IE7?
>
> My particular problem regards positioning. I find that extra pixel or
> two in IE can make a design look less than stellar.
>
>
> david wrote:
> > "!important" is not invalid. "!ie" is.
> >
>
> ______________________________________________________________________
> css-discuss [EMAIL-REMOVED]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: