I'm curious as to what in my styling is causing this issue. I have three columns in each colcontainer, and all the <li>
s are jumbling into each other like it was position: absolute. I just want them to stack vertically like they normally do. Anyone have any ideas?
CSS:
#slider .colcontainer {
width: 600px;
height: 200px;
background: red;
float: left;
padding: 0;
margin: 0;
}
#slider .col1 {
width: 30%;
margin-left: 1.5%;
margin-right: 1.5%;
background: blue;
float: left;
position: relative;
}
#slider .col1 ul {
list-style: none;
padding: 0;
float: none;
}
HTML:
<div class="colcontainer">
<div class="col1">
<ul>
<li>Test</li>
<li>Test</li>
<li>Test</li>
</ul>
</div>
<div class="col1">
<ul>
<li>Test</li>
<li>Test</li>
<li>Test</li>
</ul>
</div>
<div class="col1">
<ul>
<li>Test</li>
<li>Test</li>
<li>Test</li>
</ul>
</div>
</div>