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 just used like a widget within the webpage, and its size can vary.
Update
Looks like there is work being done on this now:
https://github.com/ResponsiveImagesCG/cq-demos