I have the following controls:

            <span class="unCBox">
                <asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="cbNacional" CssClass="cbSecciones" />
                <asp:Label ID="Label1" runat="server" Text="Label" AssociatedControlID="CheckBox1"></asp:Label>
            </span>

and my style is

.unCBox label{
margin: 10px;
padding: 5px;
border: 1px solid gray;
}
.unCBox input[type=checkbox]:checked + label{
border-color:blue;
background-color:black;
}

But it doesn't change when I check it, what am I missing?

Related posts

Recent Viewed