Log in

View Full Version : how make the browser scrollbar disable.



ravimmrk
05-23-2008, 12:17 PM
On page load i want to make my scroll bar visable status on... even though scroll is required or not.. '

its urgent i hope i can get the solution today..

regards,
ravi.m:)

Medyman
05-23-2008, 12:50 PM
Won't work in all browsers, but this is one way:

html {
overflow-y: scroll;
}

Another way:

html {
height:100%;
margin-bottom:1px;
}

These are both CSS styles. They should be added within <style> tags in the <head>

more in next post

Medyman
05-23-2008, 01:01 PM
I may have misunderstood you. I mistook "visable" for visible though now reading the title, I guess you meant "disable".

To "disable" the scrollbar, you would add the following CSS:

html,body {
height:100%;
width:100%;
overflow:hidden;
}

molendijk
05-23-2008, 02:18 PM
To "disable" the scrollbar, you would add the following CSS:

html,body {
height:100%;
width:100%;
overflow:hidden;
}

It would be wise to add: margin:0.
Is width:100% really needed?
---
Arie Molendijk.

Medyman
05-23-2008, 05:59 PM
Is width:100% really needed?

Yes, for the non-modern variety browser.

ravimmrk
05-26-2008, 10:38 AM
thanks for all your help