• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

disable horizontal scrollbar of window is possible?

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have search many threads on this topic, but there isn't a solution to it.
The CSS overflow-x and overflow-y doesn't work on frames or windows.

If that's the case, how do you explain this?
web page example

The contents simply fill up more than the browser window yet the horizontal scrollbar doesn't appear, even in mozilla! Mozilla is well known for the fact that if there is overflow, scrollbars definitinly will appear unless you set overflow to hidden but that will disable both scroll bars.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The browsers are being told what to do and they are follwoing it. They are rendering it 100% corect.

There is an iframe:
iframe width="100%" scrolling="no" height="951"

The iframe takes up 100% width of the browser. So there should not be hortizontal scrollbars since the width is always 100%. The overflow is happening inside the iframe and not in the parent page.

If you were to turn scrolling on the iframe, you would get hortizonal scrollbars, but they would not be the ones in the parent page. They would be sitting in the iframe.

If you want scrollbars, you need to set the width to a fixed pixel amount just like the height is.

I am scratching my head why an iframe would even be used here. Seems funny.

Eric
 
Are you okay? You look a little big. Maybe this tiny ad will help:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic