Container Queries: Once More Unto the Breach

Element Queries have had a name change…. Container Queries now. The awesome folks who brought us Responsive Images are now tackling the next most useful thing we could do in our responsive arsenal.

To solve the problem outlined in the Use Cases and Requirements document, we need to reframe the way we talk about a potential solution. Since a solution can’t allow an element to restyle itself, we can build that constraint into the specification: queries attached to an element can only influence the styling of that element’s child elements.

An excerpt from Container Queries: Once More Unto the Breach

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.