1
I am doing the content division, and I put to my box to be 100% tall and she does not stay, I wanted to know why ? It only stays when I put it in px
My html
<!DOCTYPE html>
<html>
<head>
<title>Pagina inicial</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="estilo.css">
</head>
<body>
<div class="conteudo">
<div class="caixa1">
</div>
<div class="caixa2">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
</div>
</body>
</html>
My css
*{margin:0; padding: 0;}
body{font-family: Arial, Helvetica, sans-serif; font-size: 15px;}
.conteudo{
width: 100%;
display: flex;
flex-direction: row;
align-items: flex-start;
}
.caixa2{
width: 80%;
background-color: red;
}
.caixa1{
width: 20%;
/*height: 620px;*/
height: 100%;
background-color: #E9F1F2;
}
Width or height he wants?
– hugocsl
height that I wanted
– Thor