Posted by Spartanicus on 01/31/07 10:55
Andrew <andrew@sorrynospam.com> wrote:
> More so than I can come to grips with conditional comments I have tried
> and failed to set some css for IE5. The page containing the css can be
> seen:
>http://people.aapt.net.au/~adjlstrong/
>
> I understood that by specifying:
>
><!--[if IE 5]>
> <link rel="stylesheet" type="text/css" href="ie5.css" />
><![endif]-->
>
> I would include all versions of IE whose version numbers started with 5,
Correct.
> and that the following simple css would center the main div on the page:
>
> body {text-align: center;}
>#content {text-align: left;}
The important info you left out is that div#content has a defined width
of 90%, given that, IE5.x should center div#content.
> but it does not work!!
Note that the available hacks to emulate multiple versions of IE on a
single machine do not evaluate CCs correctly.
--
Spartanicus
Navigation:
[Reply to this message]
|