Media Queries Might Be Looking Different Soon
Saw this video by Kevin and new features like inline if() statements and custom @function definitions could let us write responsive styles directly inside a property instead of always using separate media query blocks.
CSS nesting can already help reduce repetition today, but these newer features could make responsive CSS even cleaner and more reusable.
Right now, support is limited, mostly in Chrome, but it’s definitely something worth keeping an eye on. What are your thoughts? Do you like it?
5
3 comments
Rob Vanarsdall
7
Media Queries Might Be Looking Different Soon
powered by
The Code Zone Skool
skool.com/the-code-zone-4200
Learn the proper way to build websites with AI that will rank higher in search results. Learn HTML/CSS/JavaScript Basics to further your understanding
Build your own community
Bring people together around your passion and get paid.
Powered by