Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling CSS rules

Tags:

css

kendo-ui

Is there any way to disable a CSS rule?

I ask because I am using Kendo UI, and their rules are very all-encompassing, eg:

.k-grid td
{
   // styles
}

However if I put my table inside their table it will be styled up similarly, so its affecting far too much and needs to be removed/replaced. I don't want to have to manually overwrite the rules and keep up to date with any of kendo's changes. I don't want to have to manually delete it every time I update kendo files either.

Any chance of an easy fix? Thanks

like image 226
Tim Avatar asked Nov 12 '12 12:11

Tim


People also ask

How do I disable something in CSS?

You can't disable anything with CSS, that's a functional-issue. CSS is meant for design-issues. You could give the impression of a textbox being disabled, by setting washed-out colors on it. Keep in mind that disabled inputs won't pass their values through when you post data back to the server.

What are the 3 CSS rules?

Inheritance, the Cascade, and Specificity are the big three. Understanding these concepts will allow you to write very powerful stylesheets and also save time by writing fewer CSS rules.


1 Answers

Unfortunately there is no better way to disable a CSS rule for an element that is matched by that rule except by overwriting everything the rule defines.

like image 126
ThiefMaster Avatar answered Sep 21 '22 06:09

ThiefMaster