asp.net - Styling a Checkbox on a TreeView -


i have div containing treeview, this:

<div style="position: relative; left: 0px; top: -160px;" class="treeview">     <asp:treeview id="treeview1" runat="server" imageset="simple" showlines="true" showcheckboxes="all">     </asp:treeview> </div> 

if have following style:

#cpmaincontent_treeview1n0checkbox {     margin: 0;     padding: 0;     width: 10px;  } 

my checkbox displayed how want it, want checkboxes in treeview have same style, have tried:

.treeview.input[type="checkbox"] {     margin: 0;     padding: 0;     width: 10px; } 

but doesn't work. doing wrong?

use space character getting child members. try if treeview id cpmaincontent_treeview1 in browser:

#cpmaincontent_treeview1 input[type="checkbox"] {     margin: 0;     padding: 0;     width: 10px;  } 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -