Vertical scroll bar
Posted: 03 December 2009 11:26 PM   [ Ignore ]
Newbie
Rank
Total Posts:  6
Joined  2009-12-03

Hi,

I am trying to get rid of this vertical scroll bar on my site: http://mark.van-hussen.nl/

It appears since I’ve set the height of the body and the main div to 100% trying to fill out the screen.

Thanks,

Mark

Profile
 
 
Posted: 04 December 2009 02:33 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  9
Joined  2009-04-09

The basic method for a Sticky Footer Layout is setting min-height:100% on your main containing div after you set height:100% on the body & html elements. That allows the main divs BG color to expand with content.

The footer div then sits outside of the main containing div and is pulled back into the wrapper with a negative top margin or you pull the wrapper through the screen with a negative top margin and leave the footer as is. The footer needs to be a fixed height and the negative top margin (either on the footer or the wrapper) should match the footer’s height. That is what your layout did not take into account.

http://www.pmob.co.uk/temp/sticky-footer-ie8new.htm
http://www.pmob.co.uk/temp/sticky-f.htm
http://www.css-lab.com/demos/stickfoot/stickfoot-1.html
http://www.css-lab.com/demos/stickfoot/stickfoot-2.html

Profile
 
 
Posted: 04 December 2009 05:37 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  6
Joined  2009-12-03

Thanks! Very useful.

Mark

Profile
 
 
Posted: 11 December 2009 05:18 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  6
Joined  2009-12-03

A new problem arose: a vertical scroll bar keep on displaying even though there is nothing to scroll…

http://www.dzl-groep.nl/

Thanks

Profile
 
 
Posted: 11 December 2009 06:19 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  6
Joined  2009-12-03

Nevermind, found the fix: added fix width.

Profile
 
 
Posted: 28 September 2010 07:12 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  7
Joined  2010-09-09

I tried to use this with flag confirmation forms with this website but it does not work, how to do?
—————————————————————————
sajoo

Profile
 
 
Posted: 30 September 2010 10:14 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  14
Joined  2010-09-16

@hussen your website doesnt work anymore.
@lananhhoang2010 what?

Profile
 
 
Posted: 12 October 2010 07:56 PM   [ Ignore ]   [ # 7 ]
Jr. Member
RankRank
Total Posts:  39
Joined  2010-10-06

The range property of the scrollbar is a list of two integers: for example, (0 100). The value of the scrollbar determines the position of the scrollbox along the length of the scrollbar. The value of the scrollbar is an integer within the range.

Profile
 
 
Posted: 13 October 2010 08:50 PM   [ Ignore ]   [ # 8 ]
Jr. Member
RankRank
Total Posts:  44
Joined  2010-10-13

Try that:

<div style="height:200px; overflow:scroll"

Depending on browser compatibility you might try these rules
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;

Profile
 
 
Posted: 09 November 2010 02:20 PM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  12
Joined  2010-09-28

So, what was the final solution?



iPhone Cases | iPad Case

Profile