CSS 3 Column float (2 stałe, 1 dynamiczne)
Projektuję nagłówek, który składa się z 3 części.
Strona musi być płynna:min-width:940px; max-width:1200px;
Pierwsze dwie części nagłówka będą miały stały rozmiar:
left middle right
<---------><---------><----------------->
134px 183px (Fill the remaining space)
Chciałbym, aby właściwa część zmieniła się w zależności od rozmiaru strony, wkleję to, co mam do tej pory, ale mój problem sprawia, że wypełniają lukę całkowicie.
HTML:
<div class="main">
<div class="left"></div>
<div class="middle"></div>
<div class="right"></div>
CSS:
.main{
margin:auto;
min-width:940px;
max-width:1200px;
background-color:#000;
}
.left{
float: left;
width: 134px;
height: 191px;
background-color:#0000ff;
}
.middle{
float: left;
width: 183px;
height: 191px;
background-color:#ffff00;
}
.right{
float: left;
width: 60%;
height: 191px;
background-color:#ff0000;
}