You are here: Re: Conditional CSS Question... « HTML « IT news, forums, messages
Re: Conditional CSS Question...

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация