Is there a way to exclude a tag from CSS class? (CSS3 – HTML)


To totally unlock this section you need to Log-in


Login

Scenario

I have css that works on all TR tags for the table. However, for one TR (table row) tag in my table I do not want to apply the TR style that is common to all tables. Is there a way to exclude this TR?

Solution

CSS, meaning you can overwrite the values of previously defined properties. The negation pseudo-class, :not(X), is a functional notation taking a simple selector (excluding the negation pseudo-class itself) as an argument. It represents an element that is not represented by its argument.

Negations may not be nested; :not(:not(...)) is invalid.

To totally unlock this section you need to Log-in


Login

1 thought on “Is there a way to exclude a tag from CSS class? (CSS3 – HTML)”

Comments are closed.