Reputation: 2303
I have custom CSS for checkbox control into my web form, which is linked on the Master page hence reflect to all child page.
Now, In my gridview I have checkboxes and I don't want to keep the same checkbox sytle. How to disable CSS for checkboxes inside gridview?
Upvotes: 0
Views: 1592
Reputation: 64
The simpliest way to change the CSS the checkboxes in your GridView is to:
.gridView input[type=checkbox]{
margin:Xpx Xpx Xpx Xpx;
.. ..your style attributes...)
}
This will only affect the checkboxes that is children to an element that has CSS-class "gridView".
Upvotes: 2