You are here: Re: CSS Margins and Container « HTML « IT news, forums, messages
Re: CSS Margins and Container

Posted by Neredbojias on 10/09/07 01:21

Well bust mah britches and call me cheeky, on Mon, 08 Oct 2007 13:54:11 GMT
Bruno Barros scribed:

> I have a website template, in which ALL its content is inside a <div
> id='content'>.
> That div has the following CSS:
>
> #container {
> width: 90%;
> margin-left: auto;
> margin-right: auto;
> }
>
> In Firefox, it works. All the content is contained properly. In
> Internet Explorer 6, it doesn't. Can you tell me what I am doing wrong?

Don't think ie6 understands "margin:auto;".

Best to use a conditional comment and do something like:

width:90%;
margin-left:5%;

or just use this alone.

--
Neredbojias
Half lies are worth twice as much as whole lies.

 

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

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