Here is some sample HTML and CSS code:
<div class="section group">
<div class="col span_1_of_3">
<div id="busqueda">
content
</div>
This is column 1
</div>
<div class="col span_1_of_3">
This is column 2
<div id="busqueda">
content
</div>
</div>
<div class="col span_1_of_3">
This is column 3
<div id="busqueda">
content
</div>
</div>
</div>
The accompanying CSS code is as follows:
/* SECTIONS */
.section {
clear: both;
padding: 0px;
margin: 0px;
}
/* COLUMN SETUP */
.col {
display: block;
float:left;
margin: 1% 0 1% 1.6%;
}
.col:first-child { margin-left: 0; }
/* GROUPING */
.group:before,
.group:after { content:""; display:table; }
.group:after { clear:both;}
.group { zoom:1; /* For IE 6/7 */ }
/* GRID OF THREE */
.span_3_of_3 { width: 100%; }
.span_2_of_3 { width: 66.13%; }
.span_1_of_3 { width: 32.26%; }
/* GO FULL WIDTH BELOW 480 PIXELS */
@media only screen and (max-width: 480px) {
.col { margin: 1% 0 1% 0%; }
.span_3_of_3, .span_2_of_3, .span_1_of_3 { width: 100%; }
}
The issue I'm experiencing is that the divs inside each .span overlap when I resize the window. I would like them to stack one below another. The CSS for the specific div is as follows:
#busqueda {
/*white-space: nowrap;*/
display: inline-block;
background-color: #FFFFFF;
color: #000000;
border: 5px solid #6D6D6D;
padding: 19px;
font-family: 'trebuchet ms';
font-style: oblique;
font-weight: normal;
font-variant: normal;
border-radius: 13px;
margin-right: 55%;
border-color:#fd8a17;
margin-bottom:50px;
}
Do you have any suggestions on how to resolve this issue? I've attempted floating them but it didn't work as expected.