• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IFRAME scroll bars

 
liliya woland
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I have IFRAMES in a page on Apache, which at some point display jsp pages located on Tomcat. Could someone help me with the following 2 questions? - I'd like to get rid of the scroll bars. Is it possible to turn them off?
Say the bars did get turned off and the page that needs to be shown is very long. My concern is that this long page is not going to be fully shown with the scroll bars turned off. Is there anything I could do to make sure the page is fully visible?
Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing at all to do with JSP, so off to the HTML forum.
 
Linda Walters
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the overflow style in you CSS for the iframe.
Overflow takes values of visible, hidden, scroll, auto and inherit.
I it is set to visible, then the content of the iframe will be fully displayed, even if it exceeds the bounds of the iframe. Hidden will hide (clip) any content that is too big for the bounds of the iframe. Scroll is what you seem to not want since it add the scroll bars. Auto will add scroll bars if needed. There are some quirks with this between IE and Mozilla, so be careful and test it. Inherit takes the overflow from the iframe's container.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic