danitar
Aug-26-2009, 04:56 PM
I'm having problems with getting the main banner not to show on my Wedding Photography Category and pages and having the second banner to show up. I found what looked like two different ways to add the CSS
CSS
#my_banner {
width: 760px;
height: 160px;
margin: 0 auto;
background: url(http://danitar.smugmug.com/photos/630403077_njXEa-L.jpg) no-repeat;
}
/* hide my_banner2 by default */
#my_banner2 {display:none;}
/* hide my_banner1 in the Wedding-Photography category */
.category_Wedding Photography #banner1 {display:none;}
/* show my_banner2 in the Wedding-Photography category */
.category_Wedding Photography #banner2 {display:block;}
Custom Header
<div id="my_banner"><a href="<A href="http://www.danitarogersphotography.com"><img">http://www.danitarogersphotography.com"><img src="/img/spacer.gif" width="760" height="160" border="0" /></a></div>
<div id="my_banner2">
<img src="http://danitar.smugmug.com/photos/630483599_pjZpx-L.jpg">
</div>
Can someone try to help me see what I have done wrong?
www.danitar.smugmug.com (http://www.danitar.smugmug.com)
I went ahead and removed the second banner that was showing up on all of my pages...so this isn't all of the code I had entered when both were showing up.
I tried this and must have done something wrong or have some setting(s) set wrong somewhere else. http://dgrin.smugmug.com/gallery/1932865
Thanks, Danita
CSS
#my_banner {
width: 760px;
height: 160px;
margin: 0 auto;
background: url(http://danitar.smugmug.com/photos/630403077_njXEa-L.jpg) no-repeat;
}
/* hide my_banner2 by default */
#my_banner2 {display:none;}
/* hide my_banner1 in the Wedding-Photography category */
.category_Wedding Photography #banner1 {display:none;}
/* show my_banner2 in the Wedding-Photography category */
.category_Wedding Photography #banner2 {display:block;}
Custom Header
<div id="my_banner"><a href="<A href="http://www.danitarogersphotography.com"><img">http://www.danitarogersphotography.com"><img src="/img/spacer.gif" width="760" height="160" border="0" /></a></div>
<div id="my_banner2">
<img src="http://danitar.smugmug.com/photos/630483599_pjZpx-L.jpg">
</div>
Can someone try to help me see what I have done wrong?
www.danitar.smugmug.com (http://www.danitar.smugmug.com)
I went ahead and removed the second banner that was showing up on all of my pages...so this isn't all of the code I had entered when both were showing up.
I tried this and must have done something wrong or have some setting(s) set wrong somewhere else. http://dgrin.smugmug.com/gallery/1932865
Thanks, Danita