Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    Aug 2003
    Location
    Melbourne, Australia
    Posts
    162
    Member #
    2563
    Another day...another question!

    I have set the color of my scroll bars using css via the following code:

    body {
    SCROLLBAR-BASE-COLOR: #000000;
    SCROLLBAR-ARROW-COLOR: #FF0000;
    SCROLLBAR-3DLIGHT-COLOR: #FF0000;
    SCROLLBAR-HIGHLIGHT-COLOR: #FF0000;
    SCROLLBAR-SHADOW-COLOR: #FF0000;
    SCROLLBAR-DARKSHADOW-COLOR: #000000;
    SCROLLBAR-FACE-COLOR: #000000;
    SCROLLBAR-TRACK-COLOR: #000000;
    overflow:auto; }

    All is fine and dandy and scroll bars only appear onscreen when they are actually need - I hate scrolls.

    The "problem" I would like to resolve is that when going from a page that doesn't need the scroll bar to a page the does need to scroll the scroll bar appears and changes the physical appearance of the page (ie the page shifts the the left to compensate for the space taken up by the scrollbar. Any suggestions on how to avoid this? Is it possible to leave an indent to allow for the scrollbar? Do I make sense?

  2.  

  3. #2
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    I think if you aligned your content (table, whatever), to the left hand side of the screen - that should sort out your problem. Try it anyhows.
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  4. #3
    Senior Member
    Join Date
    Aug 2003
    Location
    Melbourne, Australia
    Posts
    162
    Member #
    2563
    Ya lost me, kinda.

    The page I have created is centered, so left align will ruin the look of the site (or at least the way I am thinking it will).

    http://www.kisstroyer.com/html/news.shtml

    Vs

    http://www.kisstroyer.com/html/links.shtml

    Scroll Vs No Scroll

  5. #4
    Senior Member Grommet's Avatar
    Join Date
    Jul 2003
    Location
    Stuart, Fl
    Posts
    459
    Member #
    2129
    Liked
    3 times
    It has to move for the scrollbar.
    Jason Anderson
    Grommet Designs
    Web / Graphic Design

  6. #5
    Senior Member splufdaddy's Avatar
    Join Date
    Feb 2003
    Location
    Boston, MA
    Posts
    4,488
    Member #
    735
    If I'm not mistaken, the scrollbar will take up a different amount of room on different OSes, browsers, platforms, etc., so there's no way to put in a space to make up for that difference for all users.

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    You'll have to write a javascript to avoid the shift with the scrollbar.

  8. #7
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    I don't think W3C is very happy at you removing the scrollbar. It's not even in the auto list when you click the <body> tag in Dreamweaver.
    JR


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:03 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com