I just want to make a div
, as if it were a windows window, with title, body and a button bar at the end. But I do not know why, depending on the size of the window, it "leaks" or is left over the screen ... I wanted the title and the bar had fixed sizes, and the body took the rest of the screen. Look at my code:
<div id='tela' class='tela'>
<div id='tela_titulo' class='tela_titulo'>TITULO</div>
<div id='tela_corpo' class='tela_corpo'>CorpoCorpo</div>
<div id='tela_botao' class='tela_botao'>botao</div>
</div>
and css
:
.tela
{
height:100px;
width:300px;
border:2px solid #ffec24;
}
.tela_titulo
{
position:relative;
height:10%;
border:2px solid #000000;
}
.tela_corpo
{
position:relative;
height:80%;
border:2px solid #000000;
}
.tela_botao
{
height:10%
border:2px solid #000000;
}
But that way he's throwing the bar out of div
.