I have created a three column fixed-fluid width layout that contains a select (fixed left), input (fluid center), and button (fixed right). Why is the select box in select-col
not clickable/expandable/openable? I am observing this behavior in IE, Firefox, and Chrome.
How do I fix this and achieve the desired layout result?
Example: http://jsfiddle.net/cegyz1cd/2/
<div class="select-col">
<select>
<option value="0">Option 0</option>
<option value="1">Option 1</option>
</select>
</div>
<div class="input-btn-col">
<div class="input-col">
<input type="text" />
</div>
<div class="btn-col">
<button type="button">Go</button>
</div>
</div>
* {
box-sizing: border-box;
}
select, input {
width: 100%;
}
.select-col {
float: left;
width: 150px;
margin-right: -150px;
}
.input-btn-col {
width: 100%;
padding-left: 150px;
float: left;
}
.input-col {
width: 100%;
padding-right: 110px;
float: left;
}
.btn-col {
float: left;
width: 110px;
margin-bottom: 0;
margin-left: -110px;
}