bom dia, gostaria de saber o que se passa com este codigo porque nao consigo com que ele faca a div header ficar colado ao top, deixa sempre um paragrafo em branco?
Código (HTML5):
o css é este
Código (CSS):
Alguem me pode ajudar?
Obrigado desde já
Código (HTML5):
<body>
<div id="header">
<h1>Barra superior</h1>
</div>
<div id="leftcolumn">
<h1>Conteúdo</h1>
</div>
<div id="content">
<h1>conteudo</h1>
</div>
<div id="footer">
<address>fim</address>
</div>
</body>
<div id="header">
<h1>Barra superior</h1>
</div>
<div id="leftcolumn">
<h1>Conteúdo</h1>
</div>
<div id="content">
<h1>conteudo</h1>
</div>
<div id="footer">
<address>fim</address>
</div>
</body>
o css é este
Código (CSS):
*{
margin: 0px;
padding: 0px;
}
#body{
text-align:center;
}
#header{
background:#C09;
height:100px;
line-height:100px;
position:static;
width:100%;
top:0;
}
#leftcolumn {
background: #2675a8;
float: left;
width: 25%;
height: 700px;
}
#content {
background:#3F3;
float: left;
width: 75%;
height: 700px;
}
#footer {
background: #df781c;
clear: both;
width: 100%;
}
margin: 0px;
padding: 0px;
}
#body{
text-align:center;
}
#header{
background:#C09;
height:100px;
line-height:100px;
position:static;
width:100%;
top:0;
}
#leftcolumn {
background: #2675a8;
float: left;
width: 25%;
height: 700px;
}
#content {
background:#3F3;
float: left;
width: 75%;
height: 700px;
}
#footer {
background: #df781c;
clear: both;
width: 100%;
}
Alguem me pode ajudar?
Obrigado desde já