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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -