I got an iframe with media-queries, it needs the width of the iframe to be 100% otherwise the media queries won't work, but at the same time, I don't want the iframe to be bigger than necessary. I am very curious how to solve this since it feels like an obvious error many people should have encountered.
I don't want the width of the iframe to be larger than the widget itself but at the same time, if I would set it to fixed 400px (roughly the size of the widget, the media queries doesn't respond when the parent viewport is changing)
I got an iframe with media-queries, it needs the width of the iframe to be 100% otherwise the media queries won't work, but at the same time, I don't want the iframe to be bigger than necessary. I am very curious how to solve this since it feels like an obvious error many people should have encountered.
I don't want the width of the iframe to be larger than the widget itself but at the same time, if I would set it to fixed 400px (roughly the size of the widget, the media queries doesn't respond when the parent viewport is changing)