473,809 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hide Scrollbars in Overflow Auto

How can I hide scrollbars which appear in my floating div element with
CSS property overflow:auto?
I do need to use auto overflow.
Thank you.

Mar 6 '07 #1
5 13372
I do need to use auto overflow.

How come you need use it?

Mar 6 '07 #2
On Mar 6, 2:05 pm, "Walton" <jrhol...@gmail .comwrote:
I do need to use auto overflow.

How come you need use it?
https://bugzilla.mozilla.org/show_bug.cgi?id=167801

Mar 6 '07 #3
On Mar 6, 1:23 pm, vunet...@gmail. com wrote:
On Mar 6, 2:05 pm, "Walton" <jrhol...@gmail .comwrote:
I do need to use auto overflow.
How come you need use it?

https://bugzilla.mozilla.org/show_bug.cgi?id=167801
I'm not aware of any way to hide scroll bars once you've told the
browser to turn them on. It seems to me that scroll bars are more of
a component of the operating system which means as a html/css/
javascript developer, you really don't have much control over them.

one hack:

have you tried wrapping the floating div in a slightly smaller div
that cuts off the portions where the scrollbars are?

<div id="wrapper" style="width: 183px; height: 183px; overflow:
hidden; border: solid black 1px">
<div id="floating-div" style="width: 200px; height:200px; overflow:
auto">
floating div content...
</div>
</div>

I'm not sure if that works with the bug though.

Mar 6 '07 #4
On Mar 6, 3:09 pm, "Walton" <jrhol...@gmail .comwrote:
On Mar 6, 1:23 pm, vunet...@gmail. com wrote:
On Mar 6, 2:05 pm, "Walton" <jrhol...@gmail .comwrote:
I do need to use auto overflow.
How come you need use it?
https://bugzilla.mozilla.org/show_bug.cgi?id=167801

I'm not aware of any way to hide scroll bars once you've told the
browser to turn them on. It seems to me that scroll bars are more of
a component of the operating system which means as a html/css/
javascript developer, you really don't have much control over them.

one hack:

have you tried wrapping the floating div in a slightly smaller div
that cuts off the portions where the scrollbars are?

<div id="wrapper" style="width: 183px; height: 183px; overflow:
hidden; border: solid black 1px">
<div id="floating-div" style="width: 200px; height:200px; overflow:
auto">
floating div content...
</div>
</div>

I'm not sure if that works with the bug though.
thank you. i'll try your solution. possibly, i'll create a JS function
to justify div's height to avoid appearing of scrollbars.

Mar 6 '07 #5
On Tue, 06 Mar 2007 16:20:46 +0100, <vu******@gmail .comwrote:
How can I hide scrollbars which appear in my floating div element with
CSS property overflow:auto?
I do need to use auto overflow.
Thank you.
Did you try wrapping it up in another floated div? One of the methods I've
used was to have an outer div with overflow:auto and an inner div with
overflow:visibl e. Then set the inner div to width:99% and padding:0 and
margin:0.

Reason for not using javascript in this case: what happens if a user's
browser has javascript turned off by default (*cough*Microfo st Internet
Exploder 7*cough*)?

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Mar 11 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
11491
by: adrien | last post by:
Hi, (also posted in netscape.public.mozilla.browser) i use netscape 7 and want to hide the scrollbars of the window when something happens. I tried this: window.scrollbars.visible=false window.scrollbars.visibility="no" .... nothing works Is it also possible only to hide the vertical scrollbar instead of both?
8
4525
by: adrien | last post by:
Thanks for all the answers about how to hide scrollbars in netscape. The conclusion is that it's not possible. My initial purpose is to compare some Netscape and IE possibilities and it's the second time that i have to conclude that Netscape can't do something while IE does: 1) IE is able to hide scrollbars (even only vertical or only horizontal) while Netscape is not. 2) IE is able to start a sound (wav) when the mouse e.g. goes over an...
2
6385
by: matthewmacchia | last post by:
I believe this is a Firefox bug but I was hoping someone found a workaround. I have implemented drag and drop functionality, but if I try to drag an element from a div that happens to have a div with an "overflow: auto" it seems to lose the onmouseover event for my target. Anyone come across this issue and found a resolution? Please advise. Here is a link to my code.
4
23302
by: Harry | last post by:
I just implemented an "overflow: auto" for a div in the main message window: http://www.auriance.com/docs/interaction/ This works as expected in Internet Explorer and Opera, but in Firefox it doesn't. There shouldn't be a scrollbar on the page, but instead, on the div that shows the messages. Any idea? Thanks,
4
12551
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0' cellpadding='0' cellspacing='0' style='border-collapse:collapse; width:100%; height:100%;'> <tr><td colspan='2' style='height:3em; border-bottom:1px solid
3
19081
by: Otto de Voogd | last post by:
I posted the problem below in alt.www.webmaster before, but no-one knew the answer, however someone suggested this group as a good place to ask. I am trying to fit images into a browser window using CSS and in particular overflow:auto; The idea being that if a user's window is too small the image becomes scrollable (horizontally) and a horizontal scrollbar appears. It works nicely in Firefox and Opera but with Internet Explorer 7 a...
14
14292
by: MrPutty | last post by:
Hello everyone! It seems I've finaly found a place with savy folks ;-) The following problem has me puzzeled - hopefully someone can help me out! ------------------------------------------------ - head - ------------------------------------------------ - - - - m - - - e - -
1
1844
by: Jake Barnes | last post by:
I searched comp.lang.javascript on Google Groups but I didn't find an answer when I searched for "viewport" or "viewport div" or any combination of words using "viewport" so now I think I'm searching for the completely wrong thing. Perhaps someone can tell me what I should be searching for? I've got a div with overflow set to "auto": overflow:auto
4
5080
by: obanite | last post by:
Hi! I'm having issues with css in FF and IE regarding overflow: auto and font-size. If I have a div like this: <div style="overflow: auto"> <span>ipsumlorendictowhateveripsumlorendictowhateveripsumlorendictowhateveasdasdripsumlorendictowhateverasdasdasdjasjdioasjiosdjasiojdoasjisdojiasojdo </span> </div>
0
9601
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10637
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3014
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.