Element Queries, From the Feet Up

Our final entry into the Element Queries wrap up looks at utilising an object tag. It’s an interesting out of the box approach that seems to work although it does seem ‘hacky’ (but then isn’t everything seem that way first time around)

After doing a ton of research and experimentation, I believe I have a better solution to Element Queries – in fact, it may be the best solution possible while we wait for some sort of native implementation of the feature. The mechanism I’ve derived not only avoids the issues highlighted above, it also provides the full Media Query API, scoped to individual elements.

An excerpt from Element Queries, From the Feet Up

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.