asked on
.selector {
width: 520px;
}
/* Target IE7 only */
>body .selector {
width: 500px;
}
.selector {
width: 520px;
*width: 500px; /* Target IE7 and earlier */
}
ASKER
HTML (HyperText Markup Language) is the main markup language for creating web pages and other information to be displayed in a web browser, providing both the structure and content for what is sent from a web server through the use of tags. The current implementation of the HTML specification is HTML5.
TRUSTED BY
<!--[if IE 7]>
According to the conditional comment this is Internet Explorer 7<br />
<![endif]-->
In the middle of that statement you could put your alternate CSS and add !important to the end of every property so it doesn't get overridden by other CSS in your stylesheet.
Example:
Open in new window
Or, instead of that, you could actually reference a completely different style sheet altogether. The latter option is more time consuming because you will have to adjust multiple stylesheets. This is a royal pain.