Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 5, 2010 18:09:19 GMT -8
currently using this bit of CSS: html { height: 100%; margin-bottom: 1px; } but it doesn't seem to work on Firefox (3.6.6). google-ing a solution seems to indicate that mozilla changed FF so that this fix would no longer work (something about being sloppy. =/)... but that still leaves me with this annoying 'jump' whenever a scrollbar appears after navigating away from a page with a small amount of content.
any ideas? =/
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,022
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Aug 5, 2010 23:30:16 GMT -8
html { overflow-y: scroll; }
seems to work in the latest version of Firefox, other browsers would need to be tested however.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 5, 2010 23:33:43 GMT -8
brilliant. =D
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Aug 10, 2010 20:17:14 GMT -8
html { overflow-y: scroll; } seems to work in the latest version of Firefox, other browsers would need to be tested however. That's what you use in all browsers. I much prefer html { overflow : auto; } To remove the scrollbar in IE when it's not necessary, however.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 10, 2010 20:18:58 GMT -8
html { overflow-y: scroll; } seems to work in the latest version of Firefox, other browsers would need to be tested however. That's what you use in all browsers. I much prefer html { overflow : auto; } To remove the scrollbar in IE when it's not necessary, however. i want the scroll bar. =]
|
|
inherit
23506
0
Nov 19, 2012 5:30:35 GMT -8
James [a_leon]
I feel a strong desire to XSS a cookie from Peter.
4,334
April 2004
mnstrgarge
|
Post by James [a_leon] on Aug 10, 2010 22:20:32 GMT -8
That's what you use in all browsers. I much prefer html { overflow : auto; } To remove the scrollbar in IE when it's not necessary, however. i want the scroll bar. =] But why do you want the scrollbar if the content doesn't need it?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,022
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Aug 11, 2010 0:34:30 GMT -8
Perhaps an explanation of the problem is on order.
If you were to wrap a forum in a div then use margin: 0 auto; in order to center the forum you'll end up with a "jump" when going from a page that needs no vertical scrollbar to page that does. That "jump" is the div resizing to compensate for the approximately 16px commandeered by the vertical scrollbar. One hack to avoid that "jump" is to force a vertical scrollbar on every page even if it doesn't need one, kinda like trading a lesser sin for one very annoying one.
I still haven't gotten around to doing any tests but I'm seeing search results suggesting this in fact does not work on Opera but it could simply be because Opera didn't add support for overflow-(y/x) until around v9.5 (which wasn't that long ago)
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 11, 2010 1:06:21 GMT -8
Perhaps an explanation of the problem is on order. If you were to wrap a forum in a div then use margin: 0 auto; in order to center the forum you'll end up with a "jump" when going from a page that needs no vertical scrollbar to page that does. That "jump" is the div resizing to compensate for the approximately 16px commandeered by the vertical scrollbar. One hack to avoid that "jump" is to force a vertical scrollbar on every page even if it doesn't need one, kinda like trading a lesser sin for one very annoying one. I still haven't gotten around to doing any tests but I'm seeing search results suggesting this in fact does not work on Opera but it could simply be because Opera didn't add support for overflow-(y/x) until around v9.5 (which wasn't that long ago) explained much better than i could've done, lol. from the research i've done on it, most people don't notice an issue. i'm just picky like that. =P
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Aug 11, 2010 5:04:40 GMT -8
I notice it, and have started forcing it on sites I work on if there's many pages that will cause it ... to happen.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 11, 2010 5:23:42 GMT -8
I notice it, and have started forcing it on sites I work on if there's many pages that will cause it ... to happen. You forgot your sunglasses. B <-- there you go. and yeah, it's quite bothersome to me. i have a few pages on my site that aren't going to need to scroll, and the jump (to me) is noticeable. I'd rather see a perpetual scroll bar than switch between page A and page B and have the site 'shift' to the left.
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Aug 11, 2010 7:08:31 GMT -8
Yup, bugs my OCD
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 11, 2010 9:00:02 GMT -8
Yup, bugs my OCD xD same same. if the page jump wasn't there, i'd actually probably still force the scollbar to appear. =X i like uniformity...
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Aug 11, 2010 9:19:47 GMT -8
Perhaps an explanation of the problem is on order. If you were to wrap a forum in a div then use margin: 0 auto; in order to center the forum you'll end up with a "jump" when going from a page that needs no vertical scrollbar to page that does. That "jump" is the div resizing to compensate for the approximately 16px commandeered by the vertical scrollbar. One hack to avoid that "jump" is to force a vertical scrollbar on every page even if it doesn't need one, kinda like trading a lesser sin for one very annoying one. I still haven't gotten around to doing any tests but I'm seeing search results suggesting this in fact does not work on Opera but it could simply be because Opera didn't add support for overflow-(y/x) until around v9.5 (which wasn't that long ago) Yeah, with a scrollbar, the position of content moves approximately 6pts to the left. I can't say it's ever bothered me, and I probably have stronger OCD than anyone else here. If you were using Ajax, that would make sense. But when the screen temporarily goes blank and the browser has to reparse the width, height, and position of all the elements in between page loads, a 6pt difference isn't very noticeable. Especially when the site has a darker template and the scrollbar sticks out like a sore thumb - it looks better with it gone when its unnecessary.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Aug 11, 2010 9:20:46 GMT -8
Yup, bugs my OCD xD same same. if the page jump wasn't there, i'd actually probably still force the scollbar to appear. =X i like uniformity... Must just be me who finds the scrollbar outdated in the first place. I always use the arrow keys or Page Down to navigate, so I don't notice when it's there or not.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 11, 2010 10:35:40 GMT -8
xD same same. if the page jump wasn't there, i'd actually probably still force the scollbar to appear. =X i like uniformity... Must just be me who finds the scrollbar outdated in the first place. I always use the arrow keys or Page Down to navigate, so I don't notice when it's there or not. eh, i notice it more from an aesthetic standpoint than a coding one. =x i wouldn't be able to form an opinion if it's outdated or not, i don't know enough about these things.
|
|