HTML and CSS Reference
In-Depth Information
Figure 14-17. First look in IE 6: a few issues to tackle
Since we're going to need some hacks to work around these problems, the first step is
creating the conditional comment that will hide our hack style sheet from browsers other
than IE 6 and earlier:
<!--[if lte IE 6]>
<link rel="stylesheet" href="iehacks.css" type="text/css" />
All the IE-specific rules will be placed in iehacks.css and kept separate from our main
styles. Let's tackle the bugs one by one.
Fixing the Doubled Float-Margin Bug
Since we've recognized the doubled float-margin bug, it's easy to apply the fix (with a CSS comment
so the purpose of the hack is clear to anyone who reads it). Knowing how the bug works also lets
Search WWH ::

Custom Search