A user embedded a spreadsheet via iFrame in their Shopify Dawn theme page but needed it to extend beyond the default 1200px page width to fill the entire browser window.
Initial Solution Attempted:
Modifying the iframe element directly in base.css only expanded it to the theme’s standard page width, leaving blank space on either side.
Working Solution:
Target the .page-width.page-width--narrow.section-template--[ID]__main-padding container class in base.css
Set max-width: fit-content !important and height: 100vh
This allows the iFrame to break out of the constrained page width container
Outcome:
The solution successfully made the iFrame full-width across the entire viewport. The user confirmed it worked perfectly.
Summarized with AI on November 9.
AI used: claude-sonnet-4-5-20250929.
Unfortunately, that just makes it the “page width” from the Theme Layout (which is 1200px), but there’s still a big chunk of blank space between that and the end of the page (maybe I should call it “window” instead of page?). That’s fine for all my other pages and iFrames, but not this one.
Is there a way to make the iFrame on this one page go past that “page width” so that it’s the same length as the header? I’m including a screen shot to show where the end of the widow and header is and where the iFrame is actually stopping.