I have been playing with this for a while now trying to get to work. I will post a link to a simplied version of what I am doing.
I have a <ul>
set to display inline and each <li>
has a width of 25% with padding and margin removed from everything I can find. Theoretically shouldn't each list item occupy equal space in the container? Well its not. Im curious if select menus carry extra padding by default that I am not aware of. I appreciate any help you guys can give.
Here is the HTML:
Try this:
/*--CSS--*/
html body{
padding: 0;
margin: 0;
}
.container{
width: 100%;
height: 40px;
background: yellow;
text-align: center;
padding: 0;
margin: 0;
}
.container ul{
list-style: none;
height: 100%;
padding: 0;
width: 100%
}
.container ul li{
display: inline-block;
line-height: 40px;
padding: 0;
width: 25%;
float:left;
}
.container select{
height: 40px;
padding: 0;
background: orange;
}
<!--HTML-->
<section class="container">
<ul>
<li> one</li>
<li><select>
<option>TwoA</option>
<option>TwoB</option>
<option>TwoC</option>
</select>
</li>
<li>three</li>
<li>four</li>
</ul>
</section>