• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More

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 Jun-03-2009, 12:24 PM
#1
4EverPhotography is offline 4EverPhotography OP
Big grins
4EverPhotography's Avatar
Box Sizing
On my Gallery page, I just added a background image, and a black box behind the thumbnails.
I would like to resize the black box to be the same width as my header and navbar at 980px. Also, I would like the black box to touch the bottom of my navbar and go down just below the SmugMug footer.

Is this possible?

Thanks,
Stacie

Oh, and one more thing, how do I hide the background image on specific galleries?

Last edited by 4EverPhotography; Jun-03-2009 at 01:37 PM.
Old Jun-03-2009, 04:01 PM
#2
4EverPhotography is offline 4EverPhotography OP
Big grins
4EverPhotography's Avatar
Quote:
Originally Posted by 4EverPhotography
On my Gallery page, I just added a background image, and a black box behind the thumbnails.
I would like to resize the black box to be the same width as my header and navbar at 980px. Also, I would like the black box to touch the bottom of my navbar and go down just below the SmugMug footer.

Is this possible?

Thanks,
Stacie

Oh, and one more thing, how do I hide the background image on specific galleries?
Update: I removed the SmugMug footer in Easy Customizer, so all I need for the black box is to set the width to 980px, and make it touch the bottom of the navbar.
Old Jun-03-2009, 04:20 PM
#3
J Allen is offline J Allen
Major grins
J Allen's Avatar
First, your missing a closing brace here:
Code:
a:active {
color:#ffffff;}
#caption_top {
display: block; 
}

Then, you could add this to your css to remove the black box:

Code:
/*====No More Background====*/
.boxBottom,
.boxTop,
.box 
{background:none !important;}
__________________
-Joe Allen
My Smugmug Site
Old Jun-03-2009, 04:25 PM
#4
J Allen is offline J Allen
Major grins
J Allen's Avatar
Looks like I read your question wrong....add this to your CSS, and see if its what you want:




Code:
/*=====Wide Gallery Thumbs=====*/
.galleries #homepage,
#content.userKeywords,
#header_wrapper, #footer_wrapper, #cobrand_footer,
#category, #subcategory, #header,
#smugmug, .smugmug #header, .smugmug #footer 
{margin-left: 15px;
margin-right: 15px;
min-width: 755px;
width: auto;
_width: expression
(document.documentElement.clientWidth < 790? "760px" : "auto");}
__________________
-Joe Allen
My Smugmug Site
Old Jun-03-2009, 06:31 PM
#5
4EverPhotography is offline 4EverPhotography OP
Big grins
4EverPhotography's Avatar
Quote:
Originally Posted by J Allen
Looks like I read your question wrong....add this to your CSS, and see if its what you want:




Code:
/*=====Wide Gallery Thumbs=====*/
.galleries #homepage,
#content.userKeywords,
#header_wrapper, #footer_wrapper, #cobrand_footer,
#category, #subcategory, #header,
#smugmug, .smugmug #header, .smugmug #footer 
{margin-left: 15px;
margin-right: 15px;
min-width: 755px;
width: auto;
_width: expression
(document.documentElement.clientWidth < 790? "760px" : "auto");}
I added this code, then played around with it, and got it to look like what I wanted. The only problem is I want the black box behind the thumbnails to touch the bottom of the navbar. How can I do this?

Also, do you know how to remove the background image in specific galleries?
Old Jun-04-2009, 03:50 AM
#6
J Allen is offline J Allen
Major grins
J Allen's Avatar
Quote:
I want the black box behind the thumbnails to touch the bottom of the navbar.

Try this:


Code:
#galleriesBox
{position:relative;
bottom:60px}

Quote:
Also, do you know how to remove the background image in specific galleries?

Something like this should work, just change the 'XXXXXX' to your gallery number:

Code:
.gallery_XXXXXX
{background-image: none !important;}
__________________
-Joe Allen
My Smugmug Site
Old Jun-04-2009, 08:31 AM
#7
4EverPhotography is offline 4EverPhotography OP
Big grins
4EverPhotography's Avatar
[quote=J Allen]Try this:


Code:
#galleriesBox
{position:relative;
bottom:60px}
Thanks!
This code works perfectly in Firefox, but it made the black box overlap the navbar in IE. Is there a way to fix it in IE?
Old Jun-04-2009, 06:37 PM
#8
4EverPhotography is offline 4EverPhotography OP
Big grins
4EverPhotography's Avatar
[quote=4EverPhotography]
Quote:
Originally Posted by J Allen
Try this:


Code:
#galleriesBox
{position:relative;
bottom:60px}
Thanks!
This code works perfectly in Firefox, but it made the black box overlap the navbar in IE. Is there a way to fix it in IE?

If the navbar was forced to be on top of all of the other page elements, (like bringing a layer to the top in Photoshop) shouldn't that fix the overlap problem with IE?

What code do I need to add?
Old Jun-05-2009, 03:47 AM
#9
J Allen is offline J Allen
Major grins
J Allen's Avatar
Try adding this, and see if IE will play nice:

Code:
#navcontainer
{z-index:99;}
__________________
-Joe Allen
My Smugmug Site
Old Jun-05-2009, 03:58 AM
#10
4EverPhotography is offline 4EverPhotography OP
Big grins
4EverPhotography's Avatar
Quote:
Originally Posted by J Allen
Try adding this, and see if IE will play nice:

Code:
#navcontainer
{z-index:99;}
It didn't work, IE is so annoying...
Old Jun-05-2009, 08:08 AM
#11
jfriend is online now jfriend
Scripting dude-volunteer
Quote:
Originally Posted by 4EverPhotography
It didn't work, IE is so annoying...
To get this right, I think it needs a clean start. One key to consistent behavior in different browsers is to make it so no objects overlap. You are trying to fix the gap by overlaping objects rather than shrinking/hiding the object that is causing the gap.

Here's my suggestion:

Get rid of these:

#navcontainer
{z-index:99;}

#galleriesBox
{position:relative;
bottom:60px}

Then, add this:

#category {padding-top:0;}
#category #breadcrumb {display:none;}
#category .boxTop {display:none;}
#category #galleriesBox {padding-top:20px;}

Adjust the number in red to your liking.

This removes a little padding from the top of the category object that was causing a gap.
It gets rid of the breadcrumb object which was causing most of the gap.
It gets rid of the boxtop object which was causing the rest of the gap.
It puts a little spacing back in the galleriesBox so the thumbs aren't too close.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question

Last edited by jfriend; Jun-05-2009 at 10:05 AM.
Old Jun-05-2009, 10:03 AM
#12
4EverPhotography is offline 4EverPhotography OP
Big grins
4EverPhotography's Avatar
Quote:
Originally Posted by jfriend
To get this right, I think it needs a clean start. One key to consistent behavior in different browsers is to make it so no objects overlap. You are trying to fix the gap by overlaping objects rather than shrinking the object that is causing the overlap.

Here's my suggestion:

Get rid of these:

#navcontainer
{z-index:99;}

#galleriesBox
{position:relative;
bottom:60px}

Then, add this:

#category {padding-top:0;}
#category #breadcrumb {display:none;}
#category .boxTop {display:none;}
#category #galleriesBox {padding-top:20px;}

Adjust the number in red to your liking.

This removes a little padding from the top of the category object that was causing a gap.
It gets rid of the breadcrumb object which was causing most of the gap.
It gets rid of the boxtop object which was causing the rest of the gap.
It puts a little spacing back in the galleriesBox so the thumbs aren't too close.
Thank you!!! It worked perfectly!
Tell The World!  

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