• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Remove vertical scroll bar on some pages

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Apr-02-2011, 10:06 AM
#1
bhockensmith is offline bhockensmith OP
Major grins
Remove vertical scroll bar on some pages
Some of my pages on my site seem to have extra height and are causing the scroll bar on the right to appear. How do I get rid of that?

On the new HTML5 slideshows...
http://www.bhockensmith.com/

And then on some gallery pages...
http://www.bhockensmith.com/Events/2...ton-12-09-2010
Old Apr-02-2011, 10:52 AM
#2
jfriend is offline jfriend
Scripting dude-volunteer
For the slideshow, add this CSS:

body.homepage, #homepage,
#bioBox, #bioBox .boxBottom,
#userBio {margin-bottom: 0; padding-bottom: 0;}
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Apr-02-2011, 11:09 AM
#3
bhockensmith is offline bhockensmith OP
Major grins
Thanks, that worked for the homepage slideshow.

How about this slideshow...

www.bhockensmith.com/portfolio/events





Quote:
Originally Posted by jfriend View Post
For the slideshow, add this CSS:

body.homepage, #homepage,
#bioBox, #bioBox .boxBottom,
#userBio {margin-bottom: 0; padding-bottom: 0;}
Old Apr-02-2011, 11:16 AM
#4
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by bhockensmith View Post
Thanks, that worked for the homepage slideshow.

How about this slideshow...

www.bhockensmith.com/portfolio/events
Add this CSS for that particular page:

body.gallery_7096843 {margin-bottom: 0;}

or maybe add this generic CSS for all pages so you don't have to do this for each page:

body {margin-bottom: 0;}

For reasons I don't understand, Smugmug has a default bottom margin on the body tag of all pages of 20px.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Apr-02-2011, 11:28 AM
#5
bhockensmith is offline bhockensmith OP
Major grins
Thanks! This one worked on my gallery-page slideshows......... body {margin-bottom: 0;}

But how do I go about removing the bottom margin on my actual gallery pages, like this one:
http://www.bhockensmith.com/Events/2010/GeorgeClinton-12-09-2010/
Old Apr-02-2011, 11:37 AM
#6
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by bhockensmith View Post
Thanks! This one worked on my gallery-page slideshows......... body {margin-bottom: 0;}

But how do I go about removing the bottom margin on my actual gallery pages, like this one:
http://www.bhockensmith.com/Events/2010/GeorgeClinton-12-09-2010/
I really have no idea why Smugmug is doing what they're doing. They have lots of extra padding that almost guarantees a scrollbar when the browser window is close to the size of the gallery. Disclaimer: I don't know why Smugmug doing this extra spacing so I don't know whether it's safe to get rid of it. Try this at your own risk:

To eliminate the gobs of extra space at the bottom of the gallery view add this:
#smugmug, #smugmug #photos {padding-bottom: 0; margin-bottom: 0;}

If you really want to squeeze everything out and you NEVER have captions or keywords to display, then you can add this too:
#caption_bottom, #imageInfo {display: none !important;}
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Apr-02-2011, 12:35 PM
#7
bhockensmith is offline bhockensmith OP
Major grins
That seems to have no effect on my site. I added that line to the end of my CSS.

Quote:
Originally Posted by jfriend View Post
I really have no idea why Smugmug is doing what they're doing. They have lots of extra padding that almost guarantees a scrollbar when the browser window is close to the size of the gallery. Disclaimer: I don't know why Smugmug doing this extra spacing so I don't know whether it's safe to get rid of it. Try this at your own risk:

To eliminate the gobs of extra space at the bottom of the gallery view add this:
#smugmug, #smugmug #photos {padding-bottom: 0; margin-bottom: 0;}

If you really want to squeeze everything out and you NEVER have captions or keywords to display, then you can add this too:
#caption_bottom, #imageInfo {display: none !important;}
Old Apr-02-2011, 01:05 PM
#8
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by bhockensmith View Post
That seems to have no effect on my site. I added that line to the end of my CSS.
It does have an effect. The scroll bar disappears sooner than without it as you make the window smaller. You'd have to add the second line of CSS if you want the scroll bar to be gone until the window hits the bottom of the photos because Smugmug does not optimize their gallery display to minimize scrollbars - probably because they don't want a scrollbar to come and go as you browser through images some with captions, some without so they reserve space for a caption regardless.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Apr-02-2011, 01:21 PM
#9
bhockensmith is offline bhockensmith OP
Major grins
I added the addtional line, and the scroll bar still does not go completely away on the gallery pages. Is that what you meant? I agree it goes away sooner, but not completely.

Quote:
Originally Posted by jfriend View Post
It does have an effect. The scroll bar disappears sooner than without it as you make the window smaller. You'd have to add the second line of CSS if you want the scroll bar to be gone until the window hits the bottom of the photos because Smugmug does not optimize their gallery display to minimize scrollbars - probably because they don't want a scrollbar to come and go as you browser through images some with captions, some without so they reserve space for a caption regardless.
Old Apr-02-2011, 01:25 PM
#10
bhockensmith is offline bhockensmith OP
Major grins
Well, I had to undo the line about the captions. I realized it removed alot of text in some galleries. Oh well. Guess we're stuck with scroll bars.

Quote:
Originally Posted by bhockensmith View Post
I added the addtional line, and the scroll bar still does not go completely away on the gallery pages. Is that what you meant? I agree it goes away sooner, but not completely.
Old Apr-02-2011, 01:28 PM
#11
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by bhockensmith View Post
Well, I had to undo the line about the captions. I realized it removed alot of text in some galleries. Oh well. Guess we're stuck with scroll bars.
The scrollbar only goes away when the browser window is larger than the space Smugmug reserves for the gallery. Smugmug does not try to fit the gallery into a window with no scrollbar. They try to make the main image visible without requiring scrolling, but they do not try to make everything below the main image visible without scrolling and they do not try to clean up extra space they aren't using so that the scrollbar goes away. I think they generally assume there's a scrollbar because usually their footer is showing and that nearly always causes a scrollbar in gallery pages. No-Scrollbar is simply not something Smugmug optimized for.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Apr-25-2011, 09:14 PM
#12
cecilwhitt is offline cecilwhitt
Beginner grinner
Somewhat related I think. I have a horizontal scroll bar on my screen that I would like to remove. It doesn't move much, but enough to be there. Real new here, is there some easy copy and paste code. Thanks

http://cecilwhitt.smugmug.com/
Old Apr-25-2011, 09:17 PM
#13
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by cecilwhitt View Post
Somewhat related I think. I have a horizontal scroll bar on my screen that I would like to remove. It doesn't move much, but enough to be there. Real new here, is there some easy copy and paste code. Thanks

http://cecilwhitt.smugmug.com/
It looks like you have a 1280 px wide banner image. Any browser window less wide than that is going to show a horiz scroll bar. I'd suggest keeping your banner less than 1000px. Even safer is 900px. Not related at all to this thread - better to post in your own new thread next time unless you're sure it's the same issue.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
Give me my money back Niphotos SmugMug Support 121 Jun-08-2011 06:58 AM
How do I remove the shadow box background from behind my slideshow and off all pages? Claire-ity SmugMug Customization 0 Jan-22-2009 09:19 PM
Can I remove "category" galleries wording from all pages? TerryP SmugMug Customization 2 Dec-21-2006 04:32 AM
Why not our own HTML entry pages? jfriend SmugMug Support 10 Mar-08-2005 09:30 PM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump