水平スクロールバーが不要なときに表示されるため、ブラウザに表示するとイライラする次のコードがあります。
ヘッダーに2つのクラスを追加すると、水平バーがブラウザーに追加されます。誰かが私がバーを取り除くために何を微調整しなければならないか知っていますか?よろしくお願いします。
<html>
<head>
<link href = "style.css" rel = "stylesheet" type = "text/css">
</head>
<body>
<div id="header">
<img src="uploads/brand.png">
<p><p>
<img src="uploads/rules.png">
<div class="fbplugin">
dsds
</div>
<div class = "counter">
dsds
</div>
</p></p>
</div>
<div id = "divide"></div>
<div id = "body">
<div class = "container">
stuff
</div>
</div>
</body>
</html>
CSSは次のとおりです。
#header {
width: 100%;
height: 140px;
}
#divide {
width: 100%;
height: 2px;
background-color: red;
}
#body {
width:100%;
height:1000px;
cursor:pointer;
}
.fbplugin{
position: relative; top: -60px; left: 1000px;
}
.counter{
position: relative; top: -130px; left: 1100px;
}
.container{
width: 600px;
margin-right: auto;
margin-left: auto;
height: 500px;
background-color: white;
}