SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: Scrolling....

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2004
    Location
    Singapore
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scrolling....

    How do I disable scrolling for a webpage? Wat is the code for tat?

    Thanx in advance....

  2. #2
    SitePoint Addict Quaint's Avatar
    Join Date
    May 2004
    Location
    Netherlands
    Posts
    219
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can't.. Just make sure your page isn't any longer than a certain amount of pixels. Problem is, different users mean different resolutions... Just remember that the most common resolution is 1024*768, which gives you about 620 pixels in height or so (max)...

    An alternative would be to open a new window, with javascript and use scrolling=no....

    Quaint Tech
    - Blog on web development and web technology.

  3. #3
    SitePoint Wizard LiquidReflex's Avatar
    Join Date
    Aug 2003
    Location
    Minnesota
    Posts
    1,861
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Why would you want to disable scrolling? That is the only way a visitor can get to more information that is off the screen? I have been on a couple sites that open up a new window without a scroll bar and part of the text runs down past the bottom of the window ... how am I supposed to read that? I'm sure they assumed that it would all fit in the given size, but each browser is different and so you never know. I wouldn't try to get rid of scrollbars unless you are 100% sure everything will fit on the page.

    Quote Originally Posted by Quaint
    Just remember that the most common resolution is 1024*768, which gives you about 620 pixels in height or so (max)...
    Also, even though 1024x768 may be the most common, there are still a lot of users on 800x600 (some stats from 10/04 show 51% are on 1024x768 and 34% on 800x600, so over 1/3 still use the lower resolution). You don't want to exclude those users.
    Kevin Hauge : Modern Leaf Design : Follow Us on Facebook
    Client Axis v.08 - client / project management script

  4. #4
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Something like this might work:

    Code:
    <style type="text/css">
    body {overflow: hidden;}
    </style>
    Throw that in the <head> tags of your page.

  5. #5
    SitePoint Addict Quaint's Avatar
    Join Date
    May 2004
    Location
    Netherlands
    Posts
    219
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by LiquidReflex
    You don't want to exclude those users.
    Certainly not, I completely agree with you, excluding is stupid, but if you read the entire post you would see I meant it differently:

    Quote Originally Posted by Quaint
    Just make sure your page isn't any longer than a certain amount of pixels.
    What this means: Make sure the content doesn't exceed (e.g.) 620 pixels in height, which means browsers (with normal font settings) wont HAVE to show the scrollbars, so they won't... Still if a browser does have to show them, it still can...

    Quaint Tech
    - Blog on web development and web technology.

  6. #6
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    UK
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could open the page in a popup and disable scrolling in that...

  7. #7
    SitePoint Wizard LiquidReflex's Avatar
    Join Date
    Aug 2003
    Location
    Minnesota
    Posts
    1,861
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Quaint
    Certainly not, I completely agree with you, excluding is stupid, but if you read the entire post you would see I meant it differently:
    I guess I misunderstood what you were saying. I thought you were saying that you can disable scrolling in a window that is 600px high since the majority of users are at 1024x768. My bad.
    Kevin Hauge : Modern Leaf Design : Follow Us on Facebook
    Client Axis v.08 - client / project management script


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
  •