Go Back   Dynamic Drive Forums > General Coding > Looking for such a script or service
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 05-23-2008, 01:17 PM
ravimmrk ravimmrk is offline
Junior Coders
 
Join Date: May 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default how make the browser scrollbar disable.

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
Reply With Quote
  #2  
Old 05-23-2008, 01:50 PM
Medyman's Avatar
Medyman Medyman is offline
Elite Coders
 
Join Date: Mar 2007
Location: Currently: New York/Philadelphia
Posts: 2,731
Thanks: 3
Thanked 519 Times in 507 Posts
Default

Won't work in all browsers, but this is one way:
Code:
html {
        overflow-y: scroll;
}
Another way:
Code:
html {
   height:100%;
   margin-bottom:1px;
}
These are both CSS styles. They should be added within <style> tags in the <head>

Edit: more in next post

Last edited by Medyman; 05-23-2008 at 02:00 PM.
Reply With Quote
  #3  
Old 05-23-2008, 02:01 PM
Medyman's Avatar
Medyman Medyman is offline
Elite Coders
 
Join Date: Mar 2007
Location: Currently: New York/Philadelphia
Posts: 2,731
Thanks: 3
Thanked 519 Times in 507 Posts
Default

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:
Code:
html,body {
   height:100%;
   width:100%;
   overflow:hidden;
}
Reply With Quote
  #4  
Old 05-23-2008, 03:18 PM
molendijk's Avatar
molendijk molendijk is offline
Senior Coders
 
Join Date: Sep 2007
Location: The Netherlands
Posts: 540
Thanks: 5
Thanked 30 Times in 28 Posts
Blog Entries: 8
Default

Quote:
Originally Posted by Medyman View Post
To "disable" the scrollbar, you would add the following CSS:
Code:
html,body {
   height:100%;
   width:100%;
   overflow:hidden;
}
It would be wise to add: margin:0.
Is width:100% really needed?
---
Arie Molendijk.
Reply With Quote
  #5  
Old 05-23-2008, 06:59 PM
Medyman's Avatar
Medyman Medyman is offline
Elite Coders
 
Join Date: Mar 2007
Location: Currently: New York/Philadelphia
Posts: 2,731
Thanks: 3
Thanked 519 Times in 507 Posts
Default

Quote:
Originally Posted by molendijk View Post
Is width:100% really needed?
Yes, for the non-modern variety browser.
Reply With Quote
  #6  
Old 05-26-2008, 11:38 AM
ravimmrk ravimmrk is offline
Junior Coders
 
Join Date: May 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for all your help
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:01 PM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.