I have a table that has particular rows containing checkboxes. I want to have these checkboxes aligned to center of their parent td's. I know that I can achieve that by styling the parent td like that:
td {
text-align: center;
}
I also know that I can easily achieve that with jQuery, but unfortunately, I cannot use jQuery.
The table is created through .NET and I cannot target the specific columns that contain checkboxes by giving a certain class.
I wonder if there is a way of styling the checkbox itself in order to align it to the center of it's parent td.
Something like:
input[type=checkbox] {
margin: auto;
}