|Subject:||width of iframe in grid|
|Posted by:||Andrew Poulos (ap_pr…@hotmail.com)|
|Date:||Mon, 15 Jul 2019|
I have this grid
grid-template-columns: 180px minmax(auto, 640px) 385px;
on this HTML
<iframe id="B" src="...">
A and C have a fixed width
B, the iframe, is centred between A and C.
If the browser window is very wide B is not to go larger than 640 px.
If the browser window is too small to accommodate B at 640 px then B
should get a scroll bar.
Alas I can't seem to get B to honour the width set in
grid-template-columns. What the code above gives me are grid areas of
the correct size but with a iframe that stays at 300 x 150.
How can I get the iframe to respond appropriately?