I have a CSS rule like * {-webkit-transition:all 0.7s ease}, This applies to all the elements on the page, but I want to exclude an Element from this rule with ID classic, how to do this?
I have a CSS rule like * {-webkit-transition:all 0.7s ease} , This applies to
Share
The CSS 3 pseudo class for excluding elements is
:not. To exclude all elements matching#classic, but keep the rest, useSee the W3C spec on selectors.
Note that these CSS3 selectors don’t work on old browsers, see https://caniuse.com/mdn-css_selectors_not for a support table.