5
I’m having the following problem with CSS.. I sent you an example of what I’m trying to do Example of the Code, click here
I would like the <div id="divAreaMenuLateral">
that this in orange that is vertically inside the <div id="divAreaConteudo">
that is in red
Is it possible to do this ?? I don’t want to center want it to stay of the same height <div id="divAreaMenuLateral">
within the <div id="divAreaConteudo">
that is if increase the height of <div id="divAreaConteudo">
to <div id="divAreaMenuLateral">
automatically adjusts.
HTML code
<html>
<header>
<title>ERP</title>
</header>
<body>
<div id="divAreaSite">
<!--span id="AreaSite"> Area Site</span-->
<div id="divAreaConteudo">
<!--span id="AreaConteudo"> Area Conteudo</span-->
<div id="divAreaTitulo">
<span id="AreaTitulo"> Area Titulos</span>
</div>
<div id="divAreaMenu">
<span id="AreaMenu"> Area Menu</span>
</div>
<div id="divAreaMenuLateral">
<!--span id="AreaMenuLateral"> Area Menu Lateral</span-->
</div>
<div id="divAreaDados">
<!--span id="AreaDados"> Area Dados</span>
<!--div id="divVendas">
<span id="AreaVendas"> Vendas</span>
</div>
<div id="divVendasDados">
<span id="VendasDados"> Vendas Dados</span>
</div-->
</div>
</div>
</div>
</body>
</html>
CSS code
html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
#divAreaSite {
background-color: #1f3ff0;
width: 100%;
height: 100%;
}
#divAreaConteudo {
background-color: #f03a45;
margin-left: 3%;
margin-right: 3%;
width: 90%;
height: 60%;
}
#divAreaTitulo {
background-color: #76f0cb;
width: 100%;
}
#divAreaMenu {
background-color: #2ff062;
width: 100%;
}
#divAreaMenuLateral {
background-color: #f0a75c;
height: 100%;
width: 20px;
// float: left;
}
Thank you for your cooperation
Thank you !!!!
Improved a lot. Just need to see if the indicated link is not enough to solve.
– Bacco