Hello, I would like to ask you how to put 3 DIVs next to each other, while the middle one fills the void between the first and third DIVs.
I would like to have dynamic buttons in the first third DIV, and I need a middle DIV to fill the gap between the DIV one and the third.
I would take pure CSS / HTML (without JavaScript)
Here is my attempt:
http://jsfiddle.net/4smx3627/
#wrapper{
height: 30px;
}
#first{
height: 100%;
background-color:red;
float: left;
display: inline-block;
}
#second{
height: 100%;
background-color:green;
display: inline-block;
}
#third{
height: 100%;
background-color:yellow;
float: right;
display: inline-block;
}
Thanks so much for any advice.
source
share