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?
3
3 comments
Rob Vanarsdall
7
Media Queries Might Be Looking Different Soon
The Code Zone Skool
skool.com/the-code-zone
Beginner-friendly community to learn Python, HTML, CSS, & JavaScript. We help you become a full-stack developer and offer 1:1 code coaching.
Leaderboard (30-day)
Powered by