iFrame problems.

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
mwalter
Experienced User
Posts: 140
Joined: Wed Sep 14, 2016 2:58 pm
First Name: Mark
Last Name: Walter
Company Name: Paragon Consulting Services
Contact:

iFrame problems.

Post by mwalter »

I'm having an issue with an iFrame I'm trying to use. I'm using an Iframe to show an HTML Progress Bar. This is working fine.

The problem I'm having is even though I set the iFrame's Overflow properties to hidden, it's still showing a vertical scroll bar.
The HTML page has the CSS set to hide the overflow controls on both the progress bar and the div in which the progress bar resides.

Any ideas?
TaskForce_Kerim
New User
Posts: 16
Joined: Mon Jul 02, 2018 7:56 am
First Name: Kerim
Last Name: Güney
Company Name: Task Force IT-Consulting GmbH
City: Dortmund
Zip / Postal Code: 44369
Country: Germany
Contact:

Re: iFrame problems.

Post by TaskForce_Kerim »

It's not the iframe that's showing the vertical scrollbar but the website inside it. For the website inside the iframe, the iframe is like a small browser window.

If you have source code access to the iframe's content, try adding the following CSS rule:

Code: Select all

body {
  overflow: hidden;
}
If you don't have access to the source code. Things become a bit hacky. You can try adding the scrolling attribute to the iframe tag, like so:

Code: Select all

<iframe scrolling="no" src="....>
but this is no longer in the HTML5 specs and as such is deprecated. It might not work in all browsers, it could break in the future, and so on.
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests