To override a CSS Variable in a specific context, you must define it within a ________ selector to increase its specificity.

  • class
  • specific
  • media
  • nested
The correct option is class. To override a CSS variable in a specific context, you should define it within a class selector. This increases the specificity of the selector, ensuring that the variable is applied within that specific scope, overriding any global variable with the same name.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *