-
AuthorPosts
-
October 16, 2014 at 3:38 am #126177
Hello, we have a few websites in our organization and i’m looking to have them all accessible through our main site.
Using I frame to get the job done and seems to work nicely, except for an issue of padding. There’s a top padding of 40… how can I get rid of this padding?
Also, it creates an issue of dual scrolling windows that can be a bit confusing (if you’re to the left or right of the iframe, in the whitespace, it scrolls the main site, if you’re inside the iframe it scrolls the iframe. This seems to be created by extra space on the side that isn’t registered (at least via inspect this element) as padding on the iframe. Is there anyway to disable the main site scrolling on this page and only have the iframe scroll?
October 16, 2014 at 10:17 am #126423Hi Micheal,
Thank you for writing in!
To remove the padding, add the following CSS code under Custom > CSS in the Customizer:
.page-id-77 .x-content-band { padding: 0; }
Regarding the double scrollbars, the iframe has been given a height of 1600px, that’s the reason it’s showing scrollbar on body of the page. You can try the following CSS code to remove it:
html, body { overflow-y: hidden; height: 100%; }
Hope this helps. 🙂
Thank you.
October 20, 2014 at 4:43 am #128359That has fixed the top padding issue but the side padding and scroll bar are still there. How can I get it to fill the whole body smoothly and look like part of the site?
Thanks!
Michael
October 20, 2014 at 4:48 am #128362I see what happened. That removed the sitewide scroll bar, not the iframe scroll bar. I want the site to still have a scroll-bar, i just want that iframe page to look like a single, cohesive unit. The iframe goes flush with the main page window and one scroll bar for the whole site, *on that page*
October 20, 2014 at 7:34 am #128453Hi there,
Please add the following CSS code under Customize -> Custom -> CSS:
body.page.page-id-77 { position: fixed; overflow: hidden; left: 0; right: 0; }
Change your page template to full width to remove padding from left side .More information on http://theme.co/x/member/kb/page-templates/.
Hope it helps.
-
AuthorPosts