css - Having trouble aligning checkboxes in an HTML table -


i can't checkboxes in first column of table aligned on right.

<form>    <div>             <table>             <th>trail</th>             <th>year</th>             <th>mileage</th>             <th>direction</th>             <tr>                 <td>                     <label for="at">at</label>                     <input type="checkbox" id="at" name="at"  value="yes">                 </td> 

i'm using css code of:

input [type=checkbox] {     text-align: right; } 

what trying

<table>     <th>trail</th>     <th>year</th>     <th>mileage</th>     <th>direction</th>     <tr>         <td>             <input type="checkbox" id="at" name="at"  value="yes"/>             <label for="at">at</label>         </td> 

here jsfidlle


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -