Hi
Why don't I get the horizontal scroll bar, whatever the width of the content be. Only the vertical scroll bar is shown.
Myweb
Thanks
V.
Hi
Why don't I get the horizontal scroll bar, whatever the width of the content be. Only the vertical scroll bar is shown.
Myweb
Thanks
V.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Nov 15, 2022, 10:56 PM EST
Hello,
You can use this one,
#iframe-scroll-box { background:#e6e6e6; width:150px; height: 150px; padding:15px; overflow-y: scroll } Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet, consectetur adipiscing elit...or
you can achieve via CSS adding for iframe,
iframe{ width:500px; height: 500px; overflow-x: hidden; overflow-y: scroll }Naresh BeniwalRank #365 · 6.8K reputationPosted Nov 15, 2022, 10:53 PM EST
https://stackoverflow.com/questions/5586058/iframe-vertical-scrolling-only#:~:text=In%20order%20to%20show%20only,page's%20width%20inside%20the%20iframe.
Valerie MeunierRank #1,526 · 1K reputationPosted Nov 16, 2022, 9:08 AM EST
Thanks for eplyijng, but my question was: Why don't I get the horizontal scroll bar? Or if you prefer: how to get the horizontal scroll bar in a iframe? But meanwhile i found an answer: in order to get a horizontal scroll bar, there needs to be a long text without any spaces and longer than the width of the iframe.
V.