SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Web Design Addict
    Join Date
    Mar 2004
    Posts
    2,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    forcing a scroll bar?

    What I want to do...(or what the client wants) is to have a scroll bar show up on every page regardless of if it needs one or not. I have my site which is 100% height...some of the pages don't have enough content to make a scroll bar appear and when you go from a page with a scroll to one of the pages without a scroll the pages gives the impression of jumping around.

    www.mcihost.com/naturalchoices/index.php is the temporary address...Appreciate any help if it wont be to much of a hassle to do this.

    -Deron

  2. #2
    \m/\m/ karinne's Avatar
    Join Date
    Dec 2002
    Location
    Aylmer, QC, Canada
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmm... maybe add overflow: scroll; to html { .. } in your css


    HTML Code:
    html {
      height: 100%;
      overflow: scoll;
    }

  3. #3
    Web Design Addict
    Join Date
    Mar 2004
    Posts
    2,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright..I'll try that and see what happens. Thanks

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,285
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    overflow:scroll will put both scrollbars on. How about trying height:100.1%

    paul

  5. #5
    SitePoint Addict RamsayX's Avatar
    Join Date
    Oct 2003
    Location
    Canada
    Posts
    324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can also do the overflow-x and overflow-y properties in CSS, but these only work in Internet Explorer 5 for Win or later ... hope that helps.
    Personal Portfolio
    Paul O'B is the CSS god


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
  •