aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes IFRAME scroll bars Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "IFRAME scroll bars" Watch "IFRAME scroll bars" New topic
Author

IFRAME scroll bars

liliya woland
Ranch Hand

Joined: Apr 11, 2006
Posts: 134
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

Joined: Jan 10, 2002
Posts: 61762
    
  67

Nothing at all to do with JSP, so off to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Linda Walters
Ranch Hand

Joined: Apr 30, 2005
Posts: 100
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.


<a href="http://labryssystems.net/pblog/index.php" target="_blank" rel="nofollow">Javaville Gazette</a><br />Non-cooperation with evil is a duty. -- Mahatma Gandhi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IFRAME scroll bars