Reply to Re: Right margin in IE?

Your name:

Reply:


Posted by James A on 05/09/07 07:35

"BootNic" <bootnic@bounce.earthlink.net> wrote in message
news:m970i.9231$j63.798@newsread2.news.pas.earthlink.net...
>> James A <me@privacy.net> wrote:
>> news: MR50i.7538$H4.1595@newsfe2-gui.ntli.net
>> Hi,
>>
>> I'm trying to create a 10px wide margin on the left and right of a
>> page using CSS. Those margins need to be 10px whatever the width of
>> the page. Firefox and Opera work fine, but in IE6 the right hand side
>> has no margin and a horizontal scroll bar appears as the page is a
>> little wider than the window (10px maybe). My test page is here:
>> http://www.felston.com/temp/test.html
[snip]
>
> <style type="text/css">
> html,body {
> margin: 0;
> padding: 0;
> }
> #wrapper {
> background:#CCCCCC;
> margin:0 10px 0 10px;
> }
> #content {
> margin: 0;
> padding: 0;
> height: 600px;
> }
> </style>
>
> --
> BootNic Tuesday, May 08, 2007 6:50 PM
>
> When men are pure, laws are useless; when men are corrupt, laws are
> broken.
> *Benjamin Disraeli*
>

That's superb! Many thanks BootNic. Working perfectly.

--
James

[Back to original 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

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