Let's say you have two simple table cells next to each other.
One contains a radio button and text. The other contains only text.
The size of the radio button is set to 16x16 pixels (don't ask me why, suppose it's easy).
The font size is 12 pixels.
How to make both the labels and the switch switch sequentially in all major browsers along (or close enough) the vertical middle of the table row?
HTML sample to get started:
<style type="text/css">
td {
font-size: 12px;
font-family: Verdana;
}
.radio {
width: 16px;
height: 16px;
vertical-align: middle;
margin: 0px;
}
.blah {
text-decoration: line-through;
}
</style>
<table>
<tr>
<td>
<input type="radio" class="radio" />
<span class="blah">O</span>
</td>
<td>
<span class="blah">O</span>
</td>
</tr>
</table>
My installed versions of IE, Opera, Firefox and Chrome above show that this
The result that I expect to see is the one that is displayed on this image using ...... IE? Seriously?
, , , , , , 2 4 .