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