[thelist] IE7 adding extra width to html tag

Hassan Schroeder hassan.schroeder at gmail.com
Thu Jan 11 16:03:40 CST 2007


On 1/11/07, Austin Harris <austin at dotmail.co.uk> wrote:
> I know, there is nothing in the css with width 100%. It's very odd...

? Sure there are -- block elements are 100% width by default, eh? :-)
Try this super-simplistic example:
...
<style type="text/css">
* {
	margin: 0;
	padding: 0;
	border-width: 0;
	}
body {
	width: 100%;
	}
</style>
</head>
<body>
<h1>width</h1>
...

Now comment out the first style rule and compare.

FWIW,
-- 
Hassan Schroeder ------------------------ hassan.schroeder at gmail.com



More information about the thelist mailing list