Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 03-21-2008, 03:27 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
Lightbulb Shifty Scrollbars

One nit to pick, and it's something I see in a lot of templates. When I click info & comments the image shifts down revealing the comments underneath. The problem I have is that in shifting the visible layer down, the page is suddenly longer than the display window, and FF adds a scroll bar on the right. This has the effect of causing the sliding layer to shift to the left slightly, which makes the transition awkward. IE doesn't have this problem, since it always displays the vertical scroll bar. Just a thought, but it would be a good idea to add a CSS rule to force the vertical scrollbar in FF and other browsers.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego

Last edited by dakwegmo; 03-21-2008 at 05:41 PM.
Reply With Quote
  #2  
Old 03-21-2008, 03:56 PM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
That's a good idea - I hadn't thought of that and I don't really like that bounce either. If anyone is interested, the css is:

html {
overflow-y: scroll;
}

Quote:
Originally Posted by dakwegmo View Post
Very nice.

One nit to pick, and it's something I see in a lot of templates. When I click info & comments the image shifts down revealing the comments underneath. The problem I have is that in shifting the visible layer down, the page is suddenly longer than the display window, and FF adds a scroll bar on the right. This has the effect of causing the sliding layer to shift to the left slightly, which makes the transition awkward. IE doesn't have this problem, since it always displays the vertical scroll bar. Just a thought, but it would be a good idea to add a CSS rule to force the vertical scrollbar in FF and other browsers.
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
  #3  
Old 03-21-2008, 05:22 PM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
Quote:
Originally Posted by kevincrafts View Post
That's a good idea - I hadn't thought of that and I don't really like that bounce either. If anyone is interested, the css is:

html {
overflow-y: scroll;
}

I will use it for sure in my template... great

also I think that this can be done too:

html {
height: 100.1%;
}

but not 100% sure...
Reply With Quote
  #4  
Old 03-21-2008, 05:39 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
100.1% doesn't work in some browsers that don't recognize decimals in height definitions. It also, enables the scroll bar, making it possible to scroll a few pixels even when the content doesn't fill up the page. This may or may not be an issue.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 12:26 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs