The structure of my markup looks something like this:
<div id="outerdiv">
<div>
Some text <select>...options...</select>
</div>
<div>
<input><label><input><label>...
</div>
<div>
Some text <select>...otions...</select>
</div>
</div>
The text is bold, the select
tags have their default styling, and the label
tags are styled as below and all take up space on the page. (The input
has display:none
.) However unless the #outerdiv
is explicitly given a height, it collapses; if a 1px border is applied, it makes a straight horizontal line from which the other styled elements appear to "hang."
Why is this / what is happening here?
Edit: All the inner divs are floated left, and the labels are styled as such:
.CheckLabels{
display: inline-block;
width: 7%;
height: 45px;
}
No other relevant styles are applied as far as I can tell.