|  | 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
  Navigation: [Reply to this message] |