asp.net - CheckboxList to display aligned? -


i made checkboxlist , not line up. don't see way control generated html. right now, check boxes not align due widths of <td> of each checkbox label being automatic width. how can set width of , make labels , checkboxes appear in 2 vertical aligned columns?

my code simple:

<div style="text-align: center;">     <p>     here tell..     </p>     <asp:checkboxlist runat="server" id="cbl" width="300px"></asp:checkboxlist>     <br />     <input type="button" id="next_3" value="next page" /> </div> 

and here screen shot

alt text http://img718.imageshack.us/img718/6824/checkboxlist.png

you can have contained within <div> left-aligning so:

<div style="text-align: center;">     <p>here tell..</p>     <div style="text-align: left; width: 50%; margin: auto;">         <asp:checkboxlist runat="server" id="cbl" width="300px"></asp:checkboxlist>     </div>      <input type="button" id="next_3" value="next page" /> </div> 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -