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;
}
.rButton {
width: 63px;
height: 52px;
vertical-align: middle;
}
.convText {
font-family:'Segoe UI';
font-size:20px;
vertical-align: middle;
}
尝试vertical-align: middle
并可能将文本/输入的line-height
设置为相等的尺寸
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.