I'm trying to create a sidebar div with icons and a 'top row' div with a image and texts displayed side-by-side. The sidebar is ok but my top row is displaying the image on top of both 'h1' and 'h3'. in it turn, h1 and h3 is displaying side by side.
The html's body:
<div class="top-row">
<span>
<img class='fotoPerfil' src="images/foto.jpg" alt="">
</span>
<span>
<h1>algum texto</h1>
</span>
<span>
<h3>barra de progresso</h3>
</span>
</div>
<!-- -->
<div class="sidebar">
<ul>
<li><a href="index.html"><img class='botaoMenu' src="images/home.png" alt=""></a></li>
<li><a href="perfil.html"><img class='botaoMenu' src="images/conta.png" alt=""></a></li>
<li><a href="settings.html"><img class='botaoMenuFundo' src="images/engrenagem.png" alt=""></a></li>
</ul>
</div>
and the css:
body {
background-color: #FCFCFC;
font: 12px Verdana, sans-serif;
}
.top-row {
position: absolute;
top: 0;
left: 12%;
right: 0%;
height: 12%;
margin: auto;
}
.top-row span {
display: inline-block;
}
.sidebar{
position: absolute;
top: 0;
left: 0;
float: left;
background-color: #EAF6F6;
width: 11%;
height: auto;
border-style: groove;
}
.botaoMenu {
max-height: 80%;
max-width: 80%;
width: auto;
height: auto;
border: none;
}
.botaoMenuFundo {
max-height: 80%;
max-width: 80%;
width: auto;
height: auto;
border: none;
padding-top: 200%;
}
.fotoPerfil {
border-radius: 100%
max-height:10%;
max-width:10%;
width: auto;
height: auto;
}
what is wrong with it?