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. |
pandy |
Feb 6 2019, 01:18 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 |
From the drupal page I linked to.
According to the HTML living standard, the content model here is "nothing", meaning it shouldn't contain text. The spec itself is incomprehensible to me. I've said it before, the loss of DTDs was a bad move. I know there were reasons, but this convoluted blah blah kills me. Or do you mean about the scroll bars? Your CSS still doesn't work for me. I thought it magically did because I had forgotten I had made overflow hidden on BODY in the framed page. |
Christian J |
Feb 6 2019, 01:55 PM
Post
#5
|
. Group: WDG Moderators Posts: 9,661 Joined: 10-August 06 Member No.: 7 |
|
Lo-Fi Version | Time is now: 28th April 2024 - 01:02 PM |