Reputation: 99
I have a problem with the alignment of a text next to a radio button. It's about a radio button in "td". So I want to align the text "Hex" vertically centered to the radio button, but what I get is this:
The one I got
I want to make it like this:
Here is what I've done so far...
HTML
<td>
<input type="radio" class="rButton" /><span class="convText">Hex</span>
</td>
CSS
.rButton{
width:13px;
height:12px;
}
.convText{
font-family:'Segoe UI';
font-size:10px;
}
Upvotes: 0
Views: 8544
Reputation: 11845
.rButton {
width: 63px;
height: 52px;
vertical-align: middle;
}
.convText {
font-family:'Segoe UI';
font-size:20px;
vertical-align: middle;
}
Upvotes: 4
Reputation: 37501
Try vertical-align: middle
and possibly setting the line-height
of text/input to equal measurements
Upvotes: 1