I'm using fancybox 3 to display a page (Page A) in an iframe. On a local server (running in Chrome) this worked great; however, online it does not - the iframe gets really narrow, and a quick inspection shows that Chrome registers fancybox-content width as 0. (It works fine in Safari.)
When I take "margin-left" styling out of one of the SVGs in Page A, the iframe appears normally again. However, this isn't a viable solution because Page A content doesn't display properly without the margin-left styling.
Here's the offending page; the box in question is the first one on the left ("Growing Bookshelves"). The page seen in the iframe is here.
Things I've already tried:
- Change width and height of frame based on this post and many, many others, using both CSS and JavaScript
- Changing various parts of Page A (tried to use "position:relative" and "left:xx%" instead of "margin-left", tried to put the svg in span/div; tried to change "display" style of body to block and inline-block)
I've spent way too long on this so any help is appreciated!
P.S. I know the code is ugly, and I'm probably not doing everything exactly as it should be done according to convention. Just trying to pull some things together.