IE7 appears to add an internal padding to select boxes, as compared to IE8+ and FireFox.
Fiddle: http://jsfiddle.net/R4KhQ/7/
In Firefox, all table rows appear within the fixed height div. There are no scrollbars on the div. In IE7, the select elements are bigger, therefore pushing some table rows off the bottom of the div. Scrollbars then appear.
How do I standardize the select box styling so the height is the same cross browser without cutting off the text?
HTML
<div id="container">
<table>
<tr>
<th>column1</th>
<th>column2</th>
<th>column3</th>
</tr>
<tr>
<td>column1</td>
<td>column2</td>
<td>
<select>
<option>An Option</option>
<option>Another Option</option>
<option>Yet Another Option</option>
</select>
</td>
</tr>
(repeat the tr row)
</table>
</div>
CSS
#container {
border: 1px solid black;
width: 500px;
height: 330px;
overflow: auto;
}
table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
}
th{
font-weight: bold;
}