|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Big grins
|
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?
|
|
|
|
|
#2
|
||
|
"tweak 'til it squeaks"
|
Quote:
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;}
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#3
|
||
|
Big grins
|
Quote:
|
|
|
|
||
|
#4
|
|
|
Big grins
|
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? |
|
|
|
|
#5
|
||
|
"tweak 'til it squeaks"
|
Quote:
</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.
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor Last edited by Allen; Oct-18-2012 at 01:43 PM. |
|
|
|
||
|
#6
|
||
|
"tweak 'til it squeaks"
|
Quote:
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; }
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#7
|
|
|
"tweak 'til it squeaks"
|
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 >
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor Last edited by Allen; Oct-18-2012 at 01:44 PM. |
|
|
|
|
#8
|
|
|
"tweak 'til it squeaks"
|
Missing "
<div id="my_banner_shorebirds"></div> Remove red and space " n <div id="navcontainer"="">
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
|
#9
|
|
|
Big grins
|
|
|
|
|
|
#10
|
|
|
"tweak 'til it squeaks"
|
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;
}
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
|
#11
|
||
|
Big grins
|
Quote:
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!
|
|
|
|
||
|
#12
|
|
|
"tweak 'til it squeaks"
|
Looks great. Noticed your Snowy Plovers, lovely, been watching all year and haven't seen one migrating thru here.
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
|
#13
|
||
|
Big grins
|
Quote:
|
|
|
|
||
|
#14
|
|
|
Big grins
|
It Works
Allen the magnificent..check out the owl banner and slideshow icon. www.theavianzone.com
|
|
|
|
|
#15
|
||
|
Big grins
|
Quote:
|
|
|
|
||
|
#16
|
||
|
"tweak 'til it squeaks"
|
Quote:
#lightBoxStage { background:#000;}
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#17
|
|
|
Big grins
|
|
|
|
|
|
#18
|
|
|
Big grins
|
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 |
|
|
|
|
#19
|
|
|
Big grins
|
|
|
|
|
|
#20
|
|
|
"tweak 'til it squeaks"
|
Try using a point size instead of %
20pt
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
| Tell The World! | |
| Tags | |
| banners , css code , header , iframes | |
| Thread Tools | |
| Display Modes | |
|
|