View Full Version : Quick banner help
cwphotos
Mar-14-2007, 08:09 AM
I have a gallery that I want to make the banner look like my front page and category pages. I have this code:
.category_Galleries #my_header, .homepage #my_header {
I just need to know what I would type in to add for the galleries.
efinlan.smugmug.com
Its the contact page I want to line up.
Edit: Crap I forgot I was using this for helping a friend. Its her site not mine. LOL
Allen
Mar-14-2007, 09:52 AM
I have a gallery that I want to make the banner look like my front page and category pages. I have this code:
.category_Galleries #my_header, .homepage #my_header {
I just need to know what I would type in to add for the galleries.
cwphotos.smugmug.com
Its the contact page I want to line up.
It might be easier if you define two headers in your html.
I played around with this and it seems to work. It uses the big image on
the homepage and "main galleries" cat page and small banner everywhere
else.
<div id="my_header1">
<a href="http://cwphotos.smugmug.com/"><img src="/img/spacer.gif" border="0"></a>
</div>
<div id="my_header2">
<a href="http://cwphotos.smugmug.com/"><img src="/img/spacer.gif" border="0"></a>
</div>
In CSS
.category_Galleries #my_header2,
.homepage #my_header2 {
display: none;}
.category_Galleries.subcategory #my_header1,
.category_Galleries.galleryPage #my_header1 {
display: none;}
.category_Galleries.subcategory #my_header2,
.category_Galleries.galleryPage #my_header2 {
display: block;}
/* SETS THE IMAGE FOR Homepage & "main galleries" cat page ======= */
.category_Galleries #my_header1,
.homepage #my_header1 {
display: block;
...
.... /128838623-O.png");
...
height: 473px;
width: 600px;
}
/* SETS THE IMAGE FOR All OTHERS ========================= */
#my_header2 {
display: block;
...
... /127411490-O.png");
...
height: 120px;
width: 750px;
}
vBulletin v3.5.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.