I have such case, using gQGrid:
<td role="gridcell" style="text-align:center;" title="" aria-describedby="BaseBetsGrid1_approved">
<span class="ui-icon ui-icon-closethick"/>
</td>
How may i canter it?
i was trying to wrap it in to div and took wraptocenter
class from here: http://www.brunildo.org/test/img_center.html
<style type="text/css">
.wraptocenter {
display: table-cell;
text-align: center;
vertical-align: middle;
}
.wraptocenter * {
vertical-align: middle;
}
/*\*//*/
.wraptocenter {
display: block;
}
.wraptocenter span {
display: inline-block;
height: 100%;
width: 1px;
}
/**/
</style>
<!--[if lt IE 8]><style>
.wraptocenter span {
display: inline-block;
height: 100%;
}
</style><![endif]-->
<td role="gridcell" style="text-align:center;" title="" aria-describedby="BaseBetsGrid1_approved">
<div class="wraptocenter">
<span class="ui-icon ui-icon-closethick"/>
</div>
</td>
But it is does not help.
How may i do that with minimum css styles?
may be specifying margin-left
would be easier?