メインのdivの幅の外側に絶対に配置されたいくつかのデザイン要素で、中央のdivを「隣接」しようとしています。右側の要素が原因でスクロール バーが表示されますが、左側の要素では表示されません (IE6/7/8、Chrome、Firefox)。その水平スクロールバーを取り除くにはどうすればよいですか?
<html>
<head>
<style type="text/css">
html, body {
height: 100%;
width: 100%;
margin: 0;
}
body { text-align: center; }
.wrapper {
margin: 0 auto;
position: relative;
width: 960px;
z-index: 0;
}
.main {
background: #900;
height: 700px;
}
.right, .left {
position: absolute;
height: 100px;
width: 100px;
}
.right {
background: #090;
top: 0px;
left: 960px;
z-index: 1;
}
.left {
background: #009;
top: 0px;
left: -100px;
z-index: 1;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="main"></div>
<div class="left"></div>
<div class="right"></div>
</div>
</body>
</html>