Create a Website
CSS Tutorial
FREE Domain!
Any web hosting you subscribe with DotEasy will get you a FREE domain name registration.
PLUS you get:
  • FREE Website Builder
  • FREE Blog
  • FREE Forum
  • FREE Photo Album
  • FREE Email Accounts
Get your FREE domain name today!
Home > CSS Tutorial
SSD Web Hosting with FREE Domain

If you want to get pixel-perfect results cross-browser, you may need to specify alternate stylesheets for different browsers, especially Internet Explorer. Internet Explorer doesn’t play by the same rules as most browsers.

Here is the basic technique for an IE-only stylesheet:

The Code

<!--[if IE]>
<link rel="stylesheet" type="text/css" href="ie-only.css"/>

You can also create IE-only stylesheets for specific versions of IE, for example,

The Code

<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="ie-7-only.css"/>

<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie-6-only.css"/>

Enjoy this tutorial?

1. Link to this page(copy/paste into your own website or blog):
2. Add this page to your favorite social bookmarks sites:
3. Add this page as your favorites. (Press Ctrl+D)