SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: forcing a scroll bar?
-
Oct 14, 2004, 09:15 #1
- 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
-
Oct 14, 2004, 09:41 #2
- 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; }
-
Oct 14, 2004, 12:46 #3
- 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
-
Oct 14, 2004, 14:52 #4
- Join Date
- Jan 2003
- Location
- Hampshire UK
- Posts
- 40,556
- Mentioned
- 183 Post(s)
- Tagged
- 6 Thread(s)
overflow:scroll will put both scrollbars on. How about trying height:100.1%
paul
-
Oct 14, 2004, 15:27 #5
- 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