In CSS preprocessors like SASS and LESS, what feature allows you to use the same piece of CSS in multiple places?
- Functions
- Mixins
- Selectors
- Variables
Mixins in CSS preprocessors like SASS and LESS allow you to reuse the same piece of CSS in multiple places. By defining a mixin, you can encapsulate a set of styles and then include it wherever needed, promoting code modularity and maintainability. Variables, functions, and selectors are also important features but serve different purposes.
Loading...
Related Quiz
- In a mobile-first approach, media queries are used primarily to add what kind of features for larger screens?
- What is a common issue encountered with icon fonts in high-DPI displays, and how is it typically addressed?
- Which property in CSS is used to control how inherited values and set values are used by an element and its child elements?
- The pseudo-class :________ is used to target elements that are the only child of its parent with a specific type.
-
How would you select all
elements inside a
using CSS?