I am trying to force an IFRAME to never show scrollbars, but setting CSS attribute overflow:hidden !important
is not working. Chrome's developer tools shows the applied style to be overflow:hidden
, but the computed style as overflow:visible
. See exact markup and CSS in screenshots below:
This seems like a bug in Chrome (this repros in Chromium, BTW). But I am still looking for a solution or workaround.
More information:
scrolling="no"
makes no difference.overflow-x: hidden !important
and overflow-y: hidden !important
does not work either. IFRAME
s width by 5 pixels gets rid of the vertical scroll bar, but it
also makes its content reflow and change layout completely.The scrollbar being rendered isn't of the iframe tag, rather than the html tag inside the iframe. So that is where the overflow: hidden;
declaration should be applied to. The iframe itself does indeed have a hidden overflow.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With