How to change label color of disabled checkbox in ASP.NET?
12,597
Use plus (+) sign to get adjacent element (http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors)
input[type="checkbox"]:checked+label{ font-weight: bold; }
input[type="checkbox"]:disabled+label
{
color:#ccc;
}
Author by
mknayab
CG Artist & UI/UX Front-end-Developer I Do Pixel Perfect Graphic Designing, Interactive User Interface & User Experience Web Designs, Web Applications, Mobile Applications (iOS & Android) and Internet Marketing. Also working on HTML5, CSS3, Responsive Design, Parallax Scrolling, SVGs, Adobe Illustrator Canvas, and 960 Grid System & HTML5 Boilerplate.
Updated on June 04, 2022Comments
-
mknayab almost 2 years
How to change disabled checkbox label of asp controls through CSS. Check disabled but the label colour is not changing even i tried through CSS, so any clue or hint with CSS?