Feature Queries
Learn how to use feature queries.
We'll cover the following...
Feature queries are used in CSS for precise feature detection and are now supported by all modern browsers!
We use the @supports
keyword for feature queries, as shown in the example below:
@supports (height: 100vh) {
.container {
...