![]() |
Simple I-frame scrolling problem I have not licked.
I am working on a new way to keep some sponsors honest and have more control by I-framing sites in domains I am sitting on.
The issue I have is I have multiple scroll bars and remove one or both won’t let the whole site be seen. Some sites are worse than others. Code I am using is real simple and one of these sites can be seen at: Real Sex Glass Toys: Glass Adult Products (I know the sponsors site looks like shit) I spent hours on this problem and the answer must be real simple and right in front of my face. The I-frame also allows social media sharing and a really cool live chat feature which works like a champ and starts at $15 a month. Highly recommend as it has improved sales and retention in adult and mainstream. When you are not logged on to chat it turns it into an email. |
iframe {
overflow: hidden; } In your CSS should work... |
Long pages like this one still have 2 bars: Real Sex Glass Toys: All Glass Sex Toys
|
Quote:
|
Quote:
|
Quote:
"Important! This 'smart iframe' will not work if you're pulling content in from something that isn't within the same hosting as the page requesting the data." Man it looked good though! |
Quote:
Like I said I have been banging my head against the wall. |
If the iframe
{ overflow:hidden; } mentioned by ETD doesn't work, it's probably because the overflow happens in the iFrame, which can't be edited because of XSS. Try putting it in a div: <div id="whatever" seamless="seamless" scrolling="no" style="width:100%; height: 100%;">IFRAME</div> |
Quote:
|
Quote:
Edit: nvm, I'll keep thinking.. Or clone the part you want from their site on your server, then iFrame that so that you can change attributes without being XSS anymore.. :upsidedow |
Quote:
Didn't mention I am a stickler for HTML complainant and cross browser capable. I swear I lost an entire day on this. The idea of cloning including processing, databases etc won't go over too well I am sure! Once this is working you can see what a huge advance it would be to any affiliate. |
Last bump for new eyes to see...
Anyone else see what we are missing? |
I'm not 100% sure what you're trying to do, but it you want the iframe to be essentially hidden. So the visitor to the site doesn't see the iframe. There are a couple css changes you need to make.
html, body { height: 100%; overflow: hidden; } iframe { height: 100%; } Be sure to get rid of this: iframe { height: 100em; } The trick with getting an iframe to completely fill the page and look natural, is setting the html, body height to 100%. |
All times are GMT -7. The time now is 02:41 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc