Asp .Net Checkboxlist Css Style Examples

checkboxlist border style
checkboxlist border style
checkboxlist border style

Most of developers will always in probles to style asp.net checkbox list css, so here i am going to tell you how to apply Asp Net Checkboxlist Css Style Examples.

<asp:CheckBoxList CssClass="mycheckbox" ID="CheckBoxList1" runat="server">
   <asp:ListItem>Sandeep Chauhan</asp:ListItem>
   <asp:ListItem>Sanjay Singh</asp:ListItem>
   <asp:ListItem>Rajaram Yadav</asp:ListItem>
   <asp:ListItem>Reeta Singh</asp:ListItem>
   <asp:ListItem>Shyam Singh</asp:ListItem>
   <asp:ListItem>Rohan Chuahan</asp:ListItem>
</asp:CheckBoxList>
<style type="text/css">
     
    
.mycheckbox td
{
   border:1px solid #f2f2f2;
   line-height:30px;
}

.mycheckbox td label
{
    line-height:30px;
    color:#f2f2f2;
}
       
       
[type="checkbox"]{
  width:20px;
  height:20px;
  border:1px dashed #000;
}

</style>

By using this class .mycheckbox on your checkboxlist to apply css on checkbox list.

Leave a Reply

avatar
  Subscribe  
Notify of