I would like to use media queries to resize elements based on the size of a div element they are in. I cannot use the screen size as the div is jus
div
A Media Query inside of an iframe can function as an element query. I've successfully implement this. The idea came from a recent post about Responsive Ads by Zurb. No Javascript!