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 -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -