[thelist] IE7 adding extra width to html tag

Mark Howells webdev at mountain.ch
Thu Jan 11 08:43:51 CST 2007


This used to happen in IE6 too, if you had body {width:100%} and then  
padding or margin on any other 100% width element.

Mark Howells
- www.permanenttourist.ch
- www.flickr.com/photos/mhowells/


On 11.01.2007, at 15:39, Austin Harris wrote:

> Now have access to IE7 :)
>
> Strangely a page that I have done is getting horizontal scrollbars  
> in IE7, (it's fine in IE6, FF (PC & Mac), Opera, Safari, IE5 etc.  
> After a bit of fiddling it appears that putting a width on the html  
> tag sorts it(1), but it means the pages can't be centered, (and  
> it's a nasty cludge).
>
> A Google on this doesn't help much, just wondering if anyone else  
> has come across such a thing?
>
> I can't show any code as such as it is on internal servers...
>
> (1)
> html {
> width: 1%;
> }
> -- 
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !




More information about the thelist mailing list