How about this... http://jsfiddle.net/gSaPb/
Check out my example on jsFiddle: http://jsfiddle.net/QzPGu. Code snippet:
td {
text-align: center;
/* center checkbox horizontally */
vertical-align: middle;
/* center checkbox vertically */
}
table {
border: 1px solid;
width: 200px;
}
tr {
height: 80px;
}
<table>
<tr>
<td>
<input type="checkbox" name="myTextEditBox" value="checked" /> checkbox
</td>
</tr>
</table>
Try
<td style="text-align:center;">
<input type="checkbox" name="myTextEditBox" value="checked" />
</td>
Try this, this should work,
td input[type="checkbox"] {
float: left;
margin: 0 auto;
width: 100%;
}
This should work, I am using it:
<td align="center"> <input type="checkbox" name="myTextEditBox" value="checked" ></td>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With