• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Gallery Banners and Iframes

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
Page 1  of  2
1 2
Old Oct-16-2012, 07:42 PM
#1
jkinglet is offline jkinglet OP
Big grins
jkinglet's Avatar
Gallery Banners and Iframes
Built a small slideshow to act as an icon for my header, increased the width of the my_banner div in CSS so the iframe would fit next to the banner, targeted (src=)the slideshow to the iframe configuration in the Custom Header area (align: right;), and it works as planned (small screens, mobile devices, etc. as well) www.theavianzone.com Now I would like to try to target each gallery banner with the same size iframe in the same position but featuring photos of birds that appear in the gallery. Seems like it should work with the class .category_blah_blah in CSS since that's how the banners (background) are input to match the galleries. Bet I'm wrong. Stumped. I have other plans for the bio box. Any suggestions?
Old Oct-16-2012, 08:18 PM
#2
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by jkinglet View Post
Built a small slideshow to act as an icon for my header, increased the width of the my_banner div in CSS so the iframe would fit next to the banner, targeted (src=)the slideshow to the iframe configuration in the Custom Header area (align: right;), and it works as planned (small screens, mobile devices, etc. as well) www.theavianzone.com Now I would like to try to target each gallery banner with the same size iframe in the same position but featuring photos of birds that appear in the gallery. Seems like it should work with the class .category_blah_blah in CSS since that's how the banners (background) are input to match the galleries. Bet I'm wrong. Stumped. I have other plans for the bio box. Any suggestions?
Anything in the header is on every page. You will have to define separate banner div's to each.
Then is CSS define where each is shown and not shown.
<div id="my_banner">
<div id="my_banner_Cranes">

#my_banner {display:none;}
.homepage #my_banner {display:block;}
#my_banner_Cranes {display:none;}
.category_Cranes #my_banner_Cranes {display:block;}
Old Oct-18-2012, 06:02 AM
#3
jkinglet is offline jkinglet OP
Big grins
jkinglet's Avatar
Quote:
Originally Posted by Allen View Post
Anything in the header is on every page. You will have to define separate banner div's to each.
Then is CSS define where each is shown and not shown.
<div id="my_banner">
<div id="my_banner_Cranes">

#my_banner {display:none;}
.homepage #my_banner {display:block;}
#my_banner_Cranes {display:none;}
.category_Cranes #my_banner_Cranes {display:block;}
Thanks Al, I'll give it a shakedown this afternoon.
Old Oct-18-2012, 01:16 PM
#4
jkinglet is offline jkinglet OP
Big grins
jkinglet's Avatar
Quote:
Originally Posted by jkinglet View Post
Thanks Al, I'll give it a shakedown this afternoon.
worked on shorebirds first. got the shorebirds banner there, but can't get it to the banner position?
www.theavianzone.com here's the css. Looks like I have the shorebirds banner as the background for the whole page not just the banner div area. Homepage is fine.

#my_banner {display:none;}
.homepage #my_banner {display:block;}
#my_banner_shorebirds {
width: 950px;
height: 150px;
position: absolute top;
}
.category_Coastal_and_Inland_Shorebirds #my_banner_shorebirds {
background: url(http://theavianzone.smugmug.com/phot...-QDrr8k8-L.png) no-repeat;
}

Lost my stretch too?
Old Oct-18-2012, 01:20 PM
#5
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by jkinglet View Post
worked on shorebirds first. got the shorebirds banner there, but can't get it to the banner position?
www.theavianzone.com here's the css. Looks like I have the shorebirds banner as the background for the whole page not just the banner div area. Homepage is fine.

#my_banner {display:none;}
.homepage #my_banner {display:block;}
#my_banner_shorebirds {
width: 950px;
height: 150px;
position: absolute top;
}
.category_Coastal_and_Inland_Shorebirds #my_banner_shorebirds {
background: url(http://theavianzone.smugmug.com/phot...-QDrr8k8-L.png) no-repeat;
}

Lost my stretch too?
First thing is in your header change this at the bottom

</div>\
<div id="my_banner_shorebirds" <="" div="">

to this

</div>
<div id="my_banner_shorebirds"></div>

Then your CSS will need some tweaking, will look at that next.

Last edited by Allen; Oct-18-2012 at 01:43 PM.
Old Oct-18-2012, 01:26 PM
#6
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by jkinglet View Post
worked on shorebirds first. got the shorebirds banner there, but can't get it to the banner position?
www.theavianzone.com here's the css. Looks like I have the shorebirds banner as the background for the whole page not just the banner div area. Homepage is fine.

#my_banner {display:none;}
.homepage #my_banner {display:block;}
#my_banner_shorebirds {
width: 950px;
height: 150px;
position: absolute top;
}
.category_Coastal_and_Inland_Shorebirds #my_banner_shorebirds {
background: url(http://theavianzone.smugmug.com/phot...-QDrr8k8-L.png) no-repeat;
}

Lost my stretch too?
What exactly is your shorebird category, this is all I could find.

category_Coastal_and_Inland_Shorebirds

BTW, add a space before no-repeat, that could bork your CSS. The space is missing on a bunch of your banner rules.

#my_banner {
width: 950px;
height: 150px;
background: url(http://www.theavianzone.com/photos/i...-Qbx55h8-L.png) no-repeat;
}
Old Oct-18-2012, 01:31 PM
#7
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by jkinglet View Post
...
Also move the div up to the top below your default banner.

..... </iframe></div>

<div id="my_banner_shorebirds"></div>

<div id="navcontainer">

EDit: left out the red >

Last edited by Allen; Oct-18-2012 at 01:44 PM.
Old Oct-18-2012, 01:58 PM
#8
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Missing "

<div id="my_banner_shorebirds"></div>

Remove red and space " n

<div id="navcontainer"="">
Old Oct-18-2012, 02:00 PM
#9
jkinglet is offline jkinglet OP
Big grins
jkinglet's Avatar
Quote:
Originally Posted by Allen View Post
Missing "

<div id="my_banner_shorebirds"></div>

Remove red and space " n

<div id="navcontainer"="">
cat jumped up on my lap and I hit the wrong key! got the stretch back..header to come?
Old Oct-18-2012, 02:01 PM
#10
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Try this
Code:
#my_banner {
   display:none;
   width: 950px;
   height: 150px;
   background: url(http://www.theavianzone.com/photos/i-Qbx55h8/0/L/i-Qbx55h8-L.png) no-repeat;
}

.homepage #my_banner {display:block;}

#my_banner_shorebirds {display:none;}
.category_Coastal_and_Inland_Shorebirds #my_banner_shorebirds {
      display:block;
      width: 750px;
      height: 150px;
      background: url(http://theavianzone.smugmug.com/photos/i-QDrr8k8/0/L/i-QDrr8k8-L.png) no-repeat;
}

.category_Coastal_and_Inland_Shorebirds #my_banner_shorebirds {
background: url(http://theavianzone.smugmug.com/photos/i-QDrr8k8/0/L/i-QDrr8k8-L.png) no-repeat;
} 
Old Oct-18-2012, 02:10 PM
#11
jkinglet is offline jkinglet OP
Big grins
jkinglet's Avatar
Quote:
Originally Posted by Allen View Post
Try this
Code:
#my_banner {
   display:none;
   width: 950px;
   height: 150px;
   background: url(http://www.theavianzone.com/photos/i-Qbx55h8/0/L/i-Qbx55h8-L.png) no-repeat;
}
 
.homepage #my_banner {display:block;}
 
#my_banner_shorebirds {display:none;}
.category_Coastal_and_Inland_Shorebirds #my_banner_shorebirds {
      display:block;
      width: 750px;
      height: 150px;
      background: url(http://theavianzone.smugmug.com/photos/i-QDrr8k8/0/L/i-QDrr8k8-L.png) no-repeat;
}
 
.category_Coastal_and_Inland_Shorebirds #my_banner_shorebirds {
background: url(http://theavianzone.smugmug.com/photos/i-QDrr8k8/0/L/i-QDrr8k8-L.png) no-repeat;
} 
Got it..thanks a bunch..just duplicate for others and add my iframe? I sretched the display block to 950 to fit in the iframe..that way it's anchored and won't move around on small screens. Thanks again!
Old Oct-18-2012, 02:13 PM
#12
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by jkinglet View Post
Got it..thanks a bunch..just duplicate for others and add my iframe? I sretched the display block to 950 to fit in the iframe..that way it's anchored and won't move around on small screens. Thanks again!
Looks great. Noticed your Snowy Plovers, lovely, been watching all year and haven't seen one migrating thru here.
Old Oct-18-2012, 02:19 PM
#13
jkinglet is offline jkinglet OP
Big grins
jkinglet's Avatar
Quote:
Originally Posted by Allen View Post
Looks great. Noticed your Snowy Plovers, lovely, been watching all year and haven't seen one migrating thru here.
Thanks.. I missed the Plovers this year due to a nasty hospital stay. headed down to Arcata with a friend late next week to shoot..he knows the spots. Will work my way down the Oregon coast with camera in tow. Thanks again for the help..I'll clean up the space issue in the CSS as I progress. BTW, like the SM feature to upload pictures directly to my Facebook fan page(s). Just started a TAZ page www.facebook.com/theavianzone and my other www.facebook.com/jefflarsenbirdphotography Fun pasttime.
Old Oct-18-2012, 06:27 PM
#14
jkinglet is offline jkinglet OP
Big grins
jkinglet's Avatar
It Works
Allen the magnificent..check out the owl banner and slideshow icon. www.theavianzone.com
Old Oct-25-2012, 04:10 PM
#15
jkinglet is offline jkinglet OP
Big grins
jkinglet's Avatar
Quote:
Originally Posted by jkinglet View Post
Allen the magnificent..check out the owl banner and slideshow icon. www.theavianzone.com
Allen, Another, assignment, if you choose to accept it! How do I make the iframe blend into the background like everything else on the page when a customer clicks on the image to make it larger. Right now if you click on, say, the short-eared owl picture, the iframe slideshow continues to play over the top of the image. I tried z-index in the iframe style..no luck. Thanks for the like by the way #1. Plan to start building on that over the next few weeks.
Old Oct-25-2012, 05:37 PM
#16
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by jkinglet View Post
Allen, Another, assignment, if you choose to accept it! How do I make the iframe blend into the background like everything else on the page when a customer clicks on the image to make it larger. Right now if you click on, say, the short-eared owl picture, the iframe slideshow continues to play over the top of the image. I tried z-index in the iframe style..no luck. Thanks for the like by the way #1. Plan to start building on that over the next few weeks.
See if this solves it.

#lightBoxStage { background:#000;}
Old Oct-25-2012, 05:57 PM
#17
jkinglet is offline jkinglet OP
Big grins
jkinglet's Avatar
Quote:
Originally Posted by Allen View Post
See if this solves it.

#lightBoxStage { background:#000;}
That did..thanks again...Jeff
Old Oct-25-2012, 07:11 PM
#18
jkinglet is offline jkinglet OP
Big grins
jkinglet's Avatar
font issue
I researched and found how last year you described changing the caption font size on the same larger image I was just talking about. worked like a charm. Problem is that the caption font size on the original image returned to the larger, ugly default size when I made the CSS change. And I can't seem to change it. This CSS below worked perfectly for the larger image caption:

#lightBoxCaption,
.caption {font-size: 90% !important;
text-align: left;}


I also have this in my CSS:

.caption {font-size: 90% !important}

And this:

.smugmug #caption_bottom {
width:300px;
text-align: left;
margin: 0 auto;
}


Guess I need to know what div (like #lightBoxCaption) SM uses for the caption below the larger picture on the gallery page? Is there a list somewhere of SmugMug divs? Got it!

.smugmug #caption_bottom {
width:300px;
text-align: left;
margin: 0 auto;
font-family: arial;
font-size: 90% !important}

Last edited by jkinglet; Oct-25-2012 at 07:20 PM. Reason: Figured it out
Old Oct-25-2012, 07:35 PM
#19
jkinglet is offline jkinglet OP
Big grins
jkinglet's Avatar
Quote:
Originally Posted by jkinglet View Post
That did..thanks again...Jeff
Except for IE8/9..perfect in all other browsers.
Old Oct-25-2012, 07:51 PM
#20
Allen is online now Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by jkinglet View Post
Except for IE8/9..perfect in all other browsers.
Try using a point size instead of %
20pt
Page 1  of  2
1 2
Tell The World!  
Tags
banners , css code , header , iframes

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