[thelist] IE7 adding extra width to html tag

Jono Jono at charlestonwebsolutions.com
Fri Nov 9 15:46:04 CST 2007



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%;
> }
>   
Hard to troubleshoot with seeing it.  Is the width applying to <html> or 
<body>?  How do you know?  Have you tried targeting <body> instead --> 
shouldn't be necessary but worth a shot in the dark.

Try overflow: hidden instead of 1% and see if that fixes it and restores 
centering.

-- 

*JONO YOUNG*
Designer | Developer | Illustrator
Charleston Web Solutions <http://www.charlestonwebsolutions.com>
/Bringing Higher Standards to the Lowcountry/




More information about the thelist mailing list