Category: iframe, Link, media queries, style guides
Hugo Giraudel writes up why he created iframify, a script which grabs a DOM node and wraps it in an
<iframe>. It’s a nifty tool for displaying components in a style guide at a certain width and effectively faking element queries.
An iframe being an inner document, media queries fire based on the width of the iframe rather than on the actual screen size. Which is what we want. Yay!
Direct Link to Article — Permalink
Introducing iframify is a post from CSS-Tricks
LEAVE A REPLY
You must be logged in to post a comment.