Results 1 to 6 of 6

Thread: how make the browser scrollbar disable.

  1. #1
    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

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    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 01:00 PM.

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    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;
    }

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    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.

  5. #5
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    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.

  6. #6
    Join Date
    May 2008
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks for all your help

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •