Remove scroll bar from iframe, Show iframe without a vertical scroll bar |
Remove scroll bar from iframe, Show iframe without a vertical scroll bar |
CharlesEF |
Feb 3 2019, 06:56 PM
Post
#1
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Hi All,
Ok, what is the trick to removing the scroll bar from an iframe. HTML5 specs state that CSS should be used but 'overflow: hidden;' has no effect. The only thing that does work is 'scrolling="no"' but HTML5 doesn't support it. The container that holds the iframe is big enough and the scroll bar should not appear but it does. Does this mean I have to use HTML4 instead of HTML5? Thanks for any help, Charles |
CharlesEF |
Feb 6 2019, 11:33 AM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
I always thought that <iframe>Text in here</iframe> was valid. It should show the text when <iframe> isn't available. HTML5 reports this as an error, says text not allowed. Has this changed?
This post has been edited by CharlesEF: Feb 6 2019, 11:34 AM |
Christian J |
Feb 6 2019, 12:49 PM
Post
#3
|
. Group: WDG Moderators Posts: 9,661 Joined: 10-August 06 Member No.: 7 |
I always thought that <iframe>Text in here</iframe> was valid. It should show the text when <iframe> isn't available. HTML5 reports this as an error, says text not allowed. Has this changed? Can't say really, the parts I bolded seem to contradict each other: "An <iframe> element never has fallback content, as it will always create a nested browsing context, regardless of whether the specified initial contents are successfully used. I ranted a little about HTML5 iframes here: http://forums.htmlhelp.com/index.php?showtopic=19970 but I still don't understand what pandy is trying to say. |
Lo-Fi Version | Time is now: 27th April 2024 - 07:48 PM |