You are here: Re: Right margin in IE? « HTML « IT news, forums, messages
Re: Right margin in IE?

Posted by BootNic on 05/08/07 22:50

> 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">
> body {
> margin: 0;
> padding: 0;
> }
> #wrapper {
> position: absolute;
> left: 10px;
> right: 10px;
> top: 0;
> background:#CCCCCC;
> }
> #content {
> margin: 0;
> padding: 0;
> width: 100%;
> height: 600px;
> }
> </style>
[snip]
> Could someone please offer a solution that works with IE? Many thanks!

<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*

 

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

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