472,378 Members | 1,234 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,378 software developers and data experts.

Disable Vertical Scroll Bars

is there any way to disable or lock vertical scroll bars on a browser
window? im a newbie and i just don't want them to appear on my screen.
sometimes they appear on IE but not on mozilla.

any ideas would be most appreciated.

Jul 20 '05 #1
3 16345
In article <40********@nntphost.cis.strath.ac.uk>,
dc************@cis.strath.ac.uk enlightened us with...
is there any way to disable or lock vertical scroll bars on a browser
window? im a newbie and i just don't want them to appear on my screen.
sometimes they appear on IE but not on mozilla.

any ideas would be most appreciated.


Is this for a site other people are going to look at?
If so, they might want to increase the font size so they can read it.
Making the scroll bars go away is a Bad Thing (tm) for accessibility
reasons. Some people don't have good eyesight and may need to increase
the font size to as large as it goes. This usually makes any "normal"
page have to scroll.

As to removing them from an open window, no. You can open a new window
with no scrollbars, but (see above) it's a Bad Idea (tm) for internet
sites.

If you meant you want your own personal browser to not show scollbars on
any page, I don't think you can do that. You could make a custom HTA
that didn't have them, in theory.

--
--
~kaeli~
I do whatever my Rice Krispies tell me to.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2
kaeli wrote:
In article <40********@nntphost.cis.strath.ac.uk>,
dc************@cis.strath.ac.uk enlightened us with...
is there any way to disable or lock vertical scroll bars on a browser
window? im a newbie and i just don't want them to appear on my screen.
sometimes they appear on IE but not on mozilla.

any ideas would be most appreciated.

If you meant you want your own personal browser to not show scollbars on
any page, I don't think you can do that. You could make a custom HTA
that didn't have them, in theory.


Actually, it is possible to control things like scrollbars in your own
browser. Create a css file with something like:

body { overflow-x: hidden ! important; }

Then in Internet Explorer, go to Tools -> Internet Options,
Accessibility..., check "Format documents using my style sheet", then
Browse... and specify the css file created above. You will never get a
horizontal scrollbar on any Web page again.

And although I don't think Firefox exposes the functionality directly
(although it may in some Extension or other), you can achieve the same
effect in Firefox by editing <Firefox directory>/res/html.css and adding

body { overflow: -moz-scrollbars-vertical ! important; }

Although it doesn't appear to do what I think it should be doing, however it
does suppress horizontal scrollbars (in addition to doing odd things to the
vertical one). Also note that the res directory contains other css files
such as forms.css, which contains default CSS for all form elements. For
example, if you always want text inputs on forms to have a single pixel
black border, you can change:

input {
...
border: 2px inset ThreeDFace;
...
}

to

input {
...
border: 1px solid Black ! important;
...
}

By the way, I'm not recommending this, you could probably make a huge mess
of Mozilla/Firefox, in addition to possibly violating some copyrights I
didn't read very carefully.

Also, the procedures outlined above are precisely why you shouldn't rely on
your Web page rendering the same on anyone's computer other then your own.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #3
Grant Wagner wrote:
[...]
And although I don't think Firefox exposes the functionality directly
(although it may in some Extension or other), you can achieve the same
effect in Firefox by editing <Firefox directory>/res/html.css and adding

body { overflow: -moz-scrollbars-vertical ! important; }

[...]
By the way, I'm not recommending this, you could probably make a huge mess
of Mozilla/Firefox, in addition to possibly violating some copyrights I
didn't read very carefully.


That's why there is the possibility for
<profile_directory>/chrome/userContent.css
and the like.
PointedEars
Jul 20 '05 #4

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

Similar topics

12
by: Arlie Rahn | last post by:
I would like to ad a custom scroll bar control to my app that has a customizable and "flat" look to it (not the normal VB look). Does anyone have any ideas on where to find a good one?
0
by: David Pratt | last post by:
Hi. I am putting together a database application on Zope. I have built a pager for my records (20 per page) but do not want the browser scroll bars to reset to the top of the browser each time the...
3
by: AES/newspost | last post by:
Just been involved with a web site where clicking a button on the main page opened a second (or secondary) window intended to function like a dialog box in Apple GUI jargon. (The primary page was...
4
by: justdummy | last post by:
Hi, I am struggling with a problem for sometimes. I need to display a table in a html and if the height of the table goes beyond 200 px then a vertical scrollbar should alone appear without any...
0
by: Sachin | last post by:
How to match the look and feel of vertical scroll bar with the inbuilt vertical scroll bars of some controls like PrintPreviewControl, Rich Text box , etc. Their scroll bars look blue where the...
18
by: ~john | last post by:
Sorry if this is a dumb question buy my CSS is pretty bad... but how do I get text to center vertically within a div tag? Here's my code below... the text is displaying on the far top-right. I...
0
by: MrNobody | last post by:
I made a custom user control which is supposed to be my own little simple gui data table and I extend from UserControl and set it's autoscroll property to true yet as I draw outside the vertical...
4
by: Matthew Cox | last post by:
Hi, I've been searching the net all day today trying to figure out how one would accomplish what I originally thought would be a fairly straight forward and simple thing. The problem I'm trying...
1
by: newbie009 | last post by:
How can I disable horizontal scroll in textbox for FireFox? Right now 1 textbox has vertical scroll and other textbox has horizontal scroll. It only looks like this on FireFox but it looks ugly....
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

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.