Tuesday, December 21, 2004

html>body : hiding css from IE

How do you hide CSS from IE? The link above gives the details.

The most elegant way is probably the url() with media import rule. Example:

@import url(../hide1b.css) screen;

The simplest is the child hack. Example:

.cat_box li {
list-style-type:none;
margin:0 0 0 10px;
}
html>body .cat_box li {
list-style-type:none;
padding:0 0 0 20px;
}

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home