Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 09-02-2009
Member
 
Join Date: Feb 2009
Posts: 84
How to hide the Scrollbar in Frame

Hi all,
I am building a Website that uses 3 frames, one for navigation, one for the displayer and one to be blank and to fill the blank space. Anyway, I was wondering how I could make horizontal scrollbars disappear, but without taking out the vertical scrollbars. Yeah, yeah, it may be the easiest thing to do in the world but I am a newbie so you know.

Thanks to all those who helps.
Reply With Quote
  #2  
Old 09-02-2009
Member
 
Join Date: Jan 2009
Posts: 18
Re: How to hide the Scrollbar in Frame

Yes, you probably can.

First approach would be to make the contents of the "frame" at hand fit the available space.

If this isn't an option, and you are actually talking about the frame or iframe element you can use the scrolling attribute:
<frame scrolling="no" ...>
For any other element, better use the CSS overflow property with the "hidden" value (example using a class selector):
.someclass {overflow: hidden;}
Reply With Quote
  #3  
Old 09-02-2009
Member
 
Join Date: Dec 2008
Posts: 183
Re: How to hide the Scrollbar in Frame

you could try setting the frame html to scrolling="no", wrapping the frame in a div, and set scrolling on the div. This should give you the same effect as if you has scrolling on the iframe itself.

HTML Code:
<div style="overflow:hidden; overflow-y:scroll; height:100px; width:100px;">
<iframe frameborder="1" scrolling="no" src="http://www.google.com">iframe not supported!</iframe>
</div>
Reply With Quote
  #4  
Old 09-02-2009
Member
 
Join Date: Feb 2009
Posts: 84
Re: How to hide the Scrollbar in Frame

Weird. I just tried that, and it works in Safari and Opera, but not in Firefox or IE! In Firefox and IE, scrolling is disabled period, whereas in Opera and Safari, the horizontal scrolling is disabled, but vertical scrolling works (which is what I want). Strange, huh?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to hide the Scrollbar in Frame"
Thread Thread Starter Forum Replies Last Post
Scrollbar Settings Bear 55 Customize Desktop 3 18-11-2010 05:05 AM
Any way to get Windows Media Player to advance/reverse frame by frame Wamil Windows Software 4 29-04-2010 04:55 AM
Add scrollbar to JTextArea Captain Carrot Software Development 5 10-03-2010 09:39 AM
How to Add scrollbar to bottom of HTML Slender Software Development 5 22-01-2010 08:25 PM
How to hide Horizontal scrollbar in HTML & CSS KaramChand Software Development 3 13-02-2009 08:12 PM


All times are GMT +5.5. The time now is 05:24 PM.