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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -