I have a div parent that contains two divs child and one of that div child contains two divs child . The title of one of these is getting out of it. I modified its size because of the available size that SO-en allows, to avoid creating horizontal scroll bars at least. actual values will be at the end of the div sample view.
Code
.div-pai-banner {
width: 480px;
height: 300px;
background-color: #CCC;
margin: auto;
margin-top: 20px;
border: 3px solid #666;
font-family: tahoma, Arial;
font-size: 1.5em;
font-weight: bold;
}
.div-filho-time {
width: 480px;
height: 220px;
background-color: #FFF;
text-align: center;
}
.div-filho-footer {
width: 480px;
height: 80px;
background-color: #00F;
}
.div-filho-patrocinio {
width: 300px;
height: 80px;
float: left;
background-color: #F00;
text-align: center;
}
.div-filho-realizacao {
width: 180px;
height: 80px;
background-color: #F00;
text-align: center;
}
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="estilo-banner.css"/>
<title>Banner</title>
</head>
<body>
<div class="div-pai-banner">
<div class="div-filho-time">imagem do time...</div>
<div class="div-filho-footer">
<div class="div-filho-patrocinio">Patrocínio:</div>
<div class="div-filho-realizacao">Realização:</div>
</div>
</div>
</body>
</html>
Actual values:
.div-parent-banner
width: 800px;
height: 500px;.div-child-time
width: 800px;
height: 400px;.div-child-footer
width: 800px;
height: 100px;.div-child-sponsorship
width: 500px;
height: 100px;.div-child-realization
width: 300px;
height: 100px;
P.S.: In this example above the achievement title did not even appear!