|
|
Thread Tools | Display Modes |
|
#1
|
|
|
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 |
|
|
|
|
#2
|
|
|
Scripting dude-volunteer
|
For the slideshow, add this CSS:
body.homepage, #homepage, #bioBox, #bioBox .boxBottom, #userBio {margin-bottom: 0; padding-bottom: 0;}
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
|
#3
|
|
|
Major grins
|
Thanks, that worked for the homepage slideshow.
How about this slideshow... www.bhockensmith.com/portfolio/events |
|
|
|
|
#4
|
||
|
Scripting dude-volunteer
|
Quote:
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 Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#5
|
|
|
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/ |
|
|
|
|
#6
|
||
|
Scripting dude-volunteer
|
Quote:
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 Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#7
|
||
|
Major grins
|
That seems to have no effect on my site. I added that line to the end of my CSS.
Quote:
|
|
|
|
||
|
#8
|
|
|
Scripting dude-volunteer
|
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 Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
|
#9
|
||
|
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:
|
|
|
|
||
|
#10
|
|
|
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.
|
|
|
|
|
#11
|
|
|
Scripting dude-volunteer
|
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 Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
|
#12
|
|
|
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/ |
|
|
|
|
#13
|
||
|
Scripting dude-volunteer
|
Quote:
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets 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 | |
|
|