lotuzwine
01-19-2007, 01:41 PM
Hi guys, I am new to designing web sites without tables. I am making some new layout for my site using divs only, but I am sure there are a lot of problens with it. Could you guys check and give some hints? Also, I am having big problens with vertical alignment. I cant see to make vert align to work without using tables! I read some articles about it but they didnt helped me.
Here are the codes: <div id="container">
<div id="header">
<span><a href="http://www.previdencia.gov.br" target="_blank"><img src="../imagens/top_logo.gif" alt="www.previdencia.gov.br" width="100" height="44" border="0"></a></span>
<span><img src="../Imagens/top_dtp.gif"></span>
</div>
<div id="header2">
<span style="margin-left:5px; float:left" class="sub">DRD - Diretoria de Relacionamento, Desenvolvimento e Informações</span>
<span style="float: right; margin-right:10px; word-spacing:4px" class="sub">Home | Intraprev | DTPnet | Fale Conosco</span>
</div>
</div>
CSS: #container {
margin: 0 0 0 0;
position: absolute;
display: block;
width: 100%;
height: 100%;
}
#header {
position:relative;
height: 48px;
width: 100%;
border-bottom: #FFFFFF 1px solid;
background-color: #669966;
}
#header2 {
display: block;
background-color: #CCCC99;
height:18px;
width: 100%;
vertical-align: middle;
}
Anything would be helpfull
Here are the codes: <div id="container">
<div id="header">
<span><a href="http://www.previdencia.gov.br" target="_blank"><img src="../imagens/top_logo.gif" alt="www.previdencia.gov.br" width="100" height="44" border="0"></a></span>
<span><img src="../Imagens/top_dtp.gif"></span>
</div>
<div id="header2">
<span style="margin-left:5px; float:left" class="sub">DRD - Diretoria de Relacionamento, Desenvolvimento e Informações</span>
<span style="float: right; margin-right:10px; word-spacing:4px" class="sub">Home | Intraprev | DTPnet | Fale Conosco</span>
</div>
</div>
CSS: #container {
margin: 0 0 0 0;
position: absolute;
display: block;
width: 100%;
height: 100%;
}
#header {
position:relative;
height: 48px;
width: 100%;
border-bottom: #FFFFFF 1px solid;
background-color: #669966;
}
#header2 {
display: block;
background-color: #CCCC99;
height:18px;
width: 100%;
vertical-align: middle;
}
Anything would be helpfull