Element Queries
How to use Element Queries
- Add the main.js amd main.css files located in /src to your page
- Start having hyper-responsive, element query fun!
Example Markup:
<section media="query(small-width, (max-width: 300px))">
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ul>
</section>
Example CSS:
section[matched-media~="small-width"] {
font-size: 50%; /* small text for a wee lil element! */
}