Working around a lack of element queries

Scott Jehl at the Filament Group is interested in finding a way to get Element Queries working outside of javascript and as part of the CSS (albeit via a SASS mixin). It doesn’t look like anyone has cracked that egg yet, but there are some interesting approaches suggested.

Lately, we’ve been running into a recurring dilemma when building responsive designs. We want to build responsive layouts comprised of many modular, independent HTML components that fluidly fill any layout container we drop them into, but CSS3 media queries don’t currently offer a way to make content respond to its container’s dimensions (as opposed to the overall viewport size).

An excerpt from Working around a lack of element queries

View original article

Subscribe to our Newsletter

Add your email address and receive an email every Friday covering off everything worth knowing about building your websites responsively.