Hide Scrollbars in Overflow Auto

V

vunet.us

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.
 
B

Beauregard T. Shagnasty

Adrienne said:
Gazing into my crystal ball I observed (e-mail address removed) writing in


http://www.w3.org/TR/CSS21/visufx.html#overflow

<quote>
hidden
This value indicates that the content is clipped and that no
scrolling user interface should be provided to view the content outside
the clipping region.
</quote>

Makes me wonder how visitors will be able to see the content that is
outside the boundaries of the div.
 
J

Jonathan N. Little

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.
And if the content exceeds the alloted space how do you propose the user
is to access the content? Maybe you want 'overflow: hidden'?
 
B

Beauregard T. Shagnasty

I do need overflow auto as it is a fix to Mozilla bug
https://bugzilla.mozilla.org/show_bug.cgi?id=167801. However, I am
going to create a JS function to resize div if content goes outside
of the visual box, I guess, unless there is a better way.

...and for the 10% who have JavaScript disabled, blocked by a corporate
firewall, or other means? What will they do?

Why do you want to hide content? What is so bad about a scrollbar?
People are used to seeing vertical scrollbars.

Oh, consider also that in some circumstances mouse wheels will not work
in a scrolling div or an iframe.
 
V

vunet.us

..and for the 10% who have JavaScript disabled, blocked by a corporate
firewall, or other means? What will they do?

Why do you want to hide content? What is so bad about a scrollbar?
People are used to seeing vertical scrollbars.

Oh, consider also that in some circumstances mouse wheels will not work
in a scrolling div or an iframe.

Every single point is already being considered. Users always have JS
enabled, content is always visible, etc. It's just too much to
describe why. But thank you for the hint.
If overflow = auto means scrollbars will always be seen and there is
no way to remove them, then I wil just apply the JS fix I mentioned
above to fix the height of the box.
 
J

Jonathan N. Little

Every single point is already being considered.
Really?
Users always have JS
enabled,

Really? According to whom?
content is always visible, etc. It's just too much to
describe why.

Really? Of course since you didn't supply a URL that would show what you
are *really* trying to do, how knows! The Moz bug that you reference is
a pretty minor and obscure one...and a change of design can usually resolve.
But thank you for the hint.
If overflow = auto means scrollbars will always be seen and there is
no way to remove them,
Not what was said, but auto only appears *if* the content exceeds the
container.
then I wil just apply the JS fix I mentioned
above to fix the height of the box.

Way to go!
 
V

vunet.us

Really? According to whom? It is an intranet AJAX app.


Really? Of course since you didn't supply a URL that would show what you
are *really* trying to do, how knows! The Moz bug that you reference is
a pretty minor and obscure one...and a change of design can usually resolve.


Not what was said, but auto only appears *if* the content exceeds the
container.


Way to go!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top