Mam taki problem długo nie programowałem i mam problem z podstawową rzeczą, a mianowicie mam 3 diy div 1 (navbar) nie jest rozciągnięty na całą stonę w momencie kiedy na div2 (navbar2) dam dużo br to div1 się nie rozciąga.druga sprawa jest taka, że jak dam 4 diva (navbar4) wewnątrz diva2 to jest div3 nie widoczny.
<link href="./bootstrap-3/css/bootstrap.min.css" rel="stylesheet" media="screen">
<script src="./bootstrap-3/js/bootstrap.min.js"></script>
<link href="./style.css" rel="stylesheet" media="screen">
<div class=navbar>
</div>
<div class=navbar2>
<div class=navbar4>
xvfd
</div>
</div>
<div class=navbar3>
</div>
body {
background-color: gray;
}
.navbar {
overflow: hidden;
background-color: #333;
clear:both;
float: left;
width: 7%; /* Full width */
opacity: 0.5;
min-height: 50px;
height: 100%;
}
.navbar2 {
overflow: hidden;
top: 0; /* Position the navbar at the top of the page */
width: 86%; /* Full width */
opacity: 0.5;
float: left;
min-height: 50px;
height: 100%;
}
.navbar3 {
overflow: hidden;
background-color: #333;
width: 7%; /* Full width */
opacity: 0.5;
}
.navbar4 {
background-color: #FF00FF;
width: 20%; /* Full width */
opacity: 0.5;
min-height: 50px;
height: 100%;
}
.navbar5 {
overflow: hidden;
background-color: #333;
width: 7%; /* Full width */
opacity: 0.5;
min-height: 50px;
height: 100%;
}