title: Can media queries resize based on a div element instead of the screen?
body: <p>I would like to use media queries to resize elements based on the size of a <code>div</code> element they are in. I cannot use the screen size as the <code>div</code> is just used like a widget within the webpage, and its size can vary.</p>