|
Posted by Jonathan N. Little on 05/09/07 13:37
James A wrote:
> "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>
>>
And the moral of this story... "Do not use absolute positioning until
you full understand what it means..."
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|