View Full Version : Line below the header & more
papaross
Feb-16-2009, 09:32 AM
My Banner and Navbar are on the same plane, but I would like to:
1. Learn how to put a separation line below the banner/navbar and make it the color I want
2. Enlarge my slideshow and move it up closer to the line mentioned in 1.
3. Bring the Banner and Navbar in closer from the edge to line up with the slideshow.
Hope it's OK to ask more than 1 question in a thread.
Thanks
photosbyross.com
jfriend
Feb-16-2009, 09:55 AM
Let's take a few of these steps at a time to get a line under your banner, header and get them lined up with your slideshow. Conceptually, we are putting a new div around all of your header and then we can put a bottom border on it and use it to contain the overall width of the header/navbar combination. We also change how the navbar is positioned so it will respect that new container. I assume that you want the header/navbar to match the width of the stuff below it so it's a fixed width on homepage and categories, but variable width in galleries.
First, change your custom header to this:
<div id="myHeader">
<div id="my_banner"><a href="http://photosbyross.com"><img src="/img/spacer.gif" width="300" border="0" height="100"></a></div>
<div id="navcontainer">
<ul>
<li><a href="/" http:="" photosbyross.com="">Home</a></li>
<li><a href="/galleries">Galleries</a></li>
<li><a href="/gallery/7335787_bX4Ay">Guestbook</a></li>
</ul>
</div>
</div
Then, replace all of your CSS with this:
#my_banner {
width: 300px;
height: 100px;
margin: 0 left;
background: url(http://photosbyross.com/photos/474266273_sfgLE-O.png) no-repeat;
_background: none;
_filter:progid:DXImageTransform.Microsoft.AlphaIma geLoader(enabled=true,sizingmethod=image,src='http ://photosbyross.com/photos/474266273_sfgLE-O.png');
}
#myHeader {border-bottom: solid 1px #777777; margin: 0 auto; width:750px; position:relative;}
.smugmug_ajax #myHeader {width: auto; margin: 0 5px;}
#navcontainer {position:absolute; right: 15px; top:35px;}
#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
font-size: 16px;
_font-size: 14px;
font-variant: small-caps;
}
#userBio {text-align: center;}
#bioBox .photo {display: none;}
#bioBox .boxBottom {background: none !important;
border: none !important;
}
.nophotos {display: none;}
.loggedIn .nophotos {display: block;}
.homepage #breadcrumb {display: none;}
#toolbar a.nav {display: none;}
#toolbar {color: #000 !important;}
#header_wrapper, #footer_wrapper, #cobrand_footer, #header,
#smugmug, .smugmug #header, .smugmug #footer {margin-left: 15px;margin-right: 15px;min-width: 755px;
width: auto;
}
h3.title,
#breadcrumb .title,
#lightBoxNav .title,
.homepage .boxTop .title,
.cartbuttons .title,
#comment_header .title {font-weight: normal !important; color: #8cca1e !important;}
#pageNavigation_top, .pageOn, #photoNavTop .title, .miniBox a.nav {font-weight: normal !important;}
#photoBy, .smugmug #caption_bottom {text-align: center; border: none;}
#toolbar {display: none;}
#navcontainer ul li {
display: inline;
}
#navcontainer ul li a {
text-decoration: none;
padding: 0px 3px;
color: #fff;
}
#navcontainer ul li a:hover {
color: #8cca1e;
}
/* FIND PAGE */
.find #bioBox,
.find #categoriesBox,
.find #galleriesBox {
display: none !important;
}
.find #keywordsBox {
display: block !important;
}
.find #datesBox {
display: block !important;
}
.find #mapBox {
display: block !important;
}
#map {height: 500px !important;}
.find #popularPhotos {
display: block !important;
}
.find #findText {display: block !important;}
.homepage #popularPhotos,
.homepage #mapBox,
.homepage #datesBox,
.homepage #findText,
.homepage #keywordsBox {display: none;}
#findText {display: none;
text-align: center;
font-size: 16px;
font-weight: bold;
margin-top: 20px;
margin-bottom: 10px;
}
#my_footer {text-align: center;}
/* ================================================== == */
/* == FAQ #18, Line up boxes with titles underneath === */
/* ============== Current as of 13 Feb 07 ============= */
/* ================================================== == */
.miniBox {width:122px; text-align:center; height:210px; margin:0 28px;}
.miniBox .photo {float:none; width:122px; height:auto; _height:1px;}
.miniBox .albumTitle {width:122px;}
.miniBox .description {width:122px;}
.miniBox .updated {width:122px;}
.loggedIn .miniBox {height:auto; min-height:300px;}
.loggedIn .miniBox .smbuttons {margin:0 auto; width:122px;}
.loggedIn .miniBox input {width:122px;}
.loggedIn .miniBox textarea {width:112px;}
.boxBottom .albumLarge {width:192px; height:350px; text-align:center; margin:0 24px;}
.albumLarge .photoLarge {float:none; width:192px; height:auto; _height:1px;}
.albumLarge .albumTitle {width:192px;}
.albumLarge .description {width:192px;}
.albumLarge .updated {width:192px;}
.loggedIn .boxBottom .albumLarge {height:auto; min-height:450px;}
.loggedIn .albumLarge .smbuttons {margin:0 auto; width:192px;}
.loggedIn .albumLarge input {width:192px;}
.loggedIn .albumLarge textarea {width:182px;}
/* hides your name (including any 's) */
#userName {
display: none;
}
/* hides the word home */
#userHome {
display: none;
}
#feeds {
display:none;
}
p.updated {
display: none;
}
.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #featuredBox {
display: none;
}
.galleries #bioBox {
display: none;
}
.galleries #galleriesBox,
.galleries #categoriesBox,
.galleries #featuredBox {
display: block;
}
.loggedIn .homepage #galleriesBox,
.loggedIn .homepage #categoriesBox {
display: block;
}
/* turn off the cart link on the minifooter */
.cartlink_footer {
display: none;
}
For further refinement, I would suggest removing the empty space below your banner graphic, putting that new graphic into your banner CSS and updating the height and width on the banner HTML and banner CSS to match. That will pull the line up close to your graphic.
Then, I would suggest implementing the more modern style picker described in this thread (http://www.dgrin.com/showthread.php?t=111251).
papaross
Feb-16-2009, 03:16 PM
Let's take a few of these steps at a time to get a line under your banner, header and get them lined up with your slideshow. Conceptually, we are putting a new div around all of your header and then we can put a bottom border on it and use it to contain the overall width of the header/navbar combination. We also change how the navbar is positioned so it will respect that new container. I assume that you want the header/navbar to match the width of the stuff below it so it's a fixed width on homepage and categories, but variable width in galleries.
First, change your custom header to this:
<div id="myHeader">
<div id="my_banner"><a href="http://photosbyross.com"><img src="/img/spacer.gif" width="300" border="0" height="100"></a></div>
<div id="navcontainer">
<ul>
<li><a href="/" http:="" photosbyross.com="">Home</a></li>
<li><a href="/galleries">Galleries</a></li>
<li><a href="/gallery/7335787_bX4Ay">Guestbook</a></li>
</ul>
</div>
</div
Then, replace all of your CSS with this:
#my_banner {
width: 300px;
height: 100px;
margin: 0 left;
background: url(http://photosbyross.com/photos/474266273_sfgLE-O.png) no-repeat;
_background: none;
_filter:progid:DXImageTransform.Microsoft.AlphaIma geLoader(enabled=true,sizingmethod=image,src='http ://photosbyross.com/photos/474266273_sfgLE-O.png');
}
#myHeader {border-bottom: solid 1px #777777; margin: 0 auto; width:750px; position:relative;}
.smugmug_ajax #myHeader {width: auto; margin: 0 5px;}
#navcontainer {position:absolute; right: 15px; top:35px;}
#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
font-size: 16px;
_font-size: 14px;
font-variant: small-caps;
}
#userBio {text-align: center;}
#bioBox .photo {display: none;}
#bioBox .boxBottom {background: none !important;
border: none !important;
}
.nophotos {display: none;}
.loggedIn .nophotos {display: block;}
.homepage #breadcrumb {display: none;}
#toolbar a.nav {display: none;}
#toolbar {color: #000 !important;}
#header_wrapper, #footer_wrapper, #cobrand_footer, #header,
#smugmug, .smugmug #header, .smugmug #footer {margin-left: 15px;margin-right: 15px;min-width: 755px;
width: auto;
}
h3.title,
#breadcrumb .title,
#lightBoxNav .title,
.homepage .boxTop .title,
.cartbuttons .title,
#comment_header .title {font-weight: normal !important; color: #8cca1e !important;}
#pageNavigation_top, .pageOn, #photoNavTop .title, .miniBox a.nav {font-weight: normal !important;}
#photoBy, .smugmug #caption_bottom {text-align: center; border: none;}
#toolbar {display: none;}
#navcontainer ul li {
display: inline;
}
#navcontainer ul li a {
text-decoration: none;
padding: 0px 3px;
color: #fff;
}
#navcontainer ul li a:hover {
color: #8cca1e;
}
/* FIND PAGE */
.find #bioBox,
.find #categoriesBox,
.find #galleriesBox {
display: none !important;
}
.find #keywordsBox {
display: block !important;
}
.find #datesBox {
display: block !important;
}
.find #mapBox {
display: block !important;
}
#map {height: 500px !important;}
.find #popularPhotos {
display: block !important;
}
.find #findText {display: block !important;}
.homepage #popularPhotos,
.homepage #mapBox,
.homepage #datesBox,
.homepage #findText,
.homepage #keywordsBox {display: none;}
#findText {display: none;
text-align: center;
font-size: 16px;
font-weight: bold;
margin-top: 20px;
margin-bottom: 10px;
}
#my_footer {text-align: center;}
/* ================================================== == */
/* == FAQ #18, Line up boxes with titles underneath === */
/* ============== Current as of 13 Feb 07 ============= */
/* ================================================== == */
.miniBox {width:122px; text-align:center; height:210px; margin:0 28px;}
.miniBox .photo {float:none; width:122px; height:auto; _height:1px;}
.miniBox .albumTitle {width:122px;}
.miniBox .description {width:122px;}
.miniBox .updated {width:122px;}
.loggedIn .miniBox {height:auto; min-height:300px;}
.loggedIn .miniBox .smbuttons {margin:0 auto; width:122px;}
.loggedIn .miniBox input {width:122px;}
.loggedIn .miniBox textarea {width:112px;}
.boxBottom .albumLarge {width:192px; height:350px; text-align:center; margin:0 24px;}
.albumLarge .photoLarge {float:none; width:192px; height:auto; _height:1px;}
.albumLarge .albumTitle {width:192px;}
.albumLarge .description {width:192px;}
.albumLarge .updated {width:192px;}
.loggedIn .boxBottom .albumLarge {height:auto; min-height:450px;}
.loggedIn .albumLarge .smbuttons {margin:0 auto; width:192px;}
.loggedIn .albumLarge input {width:192px;}
.loggedIn .albumLarge textarea {width:182px;}
/* hides your name (including any 's) */
#userName {
display: none;
}
/* hides the word home */
#userHome {
display: none;
}
#feeds {
display:none;
}
p.updated {
display: none;
}
.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #featuredBox {
display: none;
}
.galleries #bioBox {
display: none;
}
.galleries #galleriesBox,
.galleries #categoriesBox,
.galleries #featuredBox {
display: block;
}
.loggedIn .homepage #galleriesBox,
.loggedIn .homepage #categoriesBox {
display: block;
}
/* turn off the cart link on the minifooter */
.cartlink_footer {
display: none;
}
For further refinement, I would suggest removing the empty space below your banner graphic, putting that new graphic into your banner CSS and updating the height and width on the banner HTML and banner CSS to match. That will pull the line up close to your graphic.
Then, I would suggest implementing the more modern style picker described in this thread (http://www.dgrin.com/showthread.php?t=111251).
Thank you. Works great so far. I like the style picker. I put a new banner in, and changed the color of the line. However I am having small problem that I just saw. It seems that when I log in, I do not get the owner style. The home page remains as a guest would see it. However, I don't have to log in again, I just have to click on any icon on the home page and it then opens up to the owners view. Any help here would be appreciated.?
I would seriously ask if you have any suggestions?
jfriend
Feb-16-2009, 04:29 PM
Thank you. Works great so far. I like the style picker. I put a new banner in, and changed the color of the line. However I am having small problem that I just saw. It seems that when I log in, I do not get the owner style. The home page remains as a guest would see it. However, I don't have to log in again, I just have to click on any icon on the home page and it then opens up to the owners view. Any help here would be appreciated.?
I would seriously ask if you have any suggestions?
What do you expect to see in the homepage owner view that you are not seeing?
Does it work differently if you use your nickname.smugmug.com address instead of your custom domain. When logging in with your custom domain, you have to hit refresh once before it shows you as logged in. That's just an issue with Smugmug's handling of login, cookies and custom domains.
If I were you, I'd take the empty space out from under your banner image and modify the CSS sizes accordingly to pull the red line up right under the banner/navbar. It would look more like this: http://www.moonriverphotography.com/.
papaross
Feb-16-2009, 04:40 PM
What do you expect to see in the homepage owner view that you are not seeing?
Does it work differently if you use your nickname.smugmug.com address instead of your custom domain. When logging in with your custom domain, you have to hit refresh once before it shows you as logged in. That's just an issue with Smugmug's handling of login, cookies and custom domains.
If I were you, I'd take the empty space out from under your banner image and modify the CSS sizes accordingly to pull the red line up right under the banner/navbar. It would look more like this: http://www.moonriverphotography.com/.
OK, I can live with the login issue. But I'm not sure I know how to take the empty space out from under the banner image?
Also, is it possible to put a navbar text for featured galleries? If so, how? (I think I am hiding featured galleries, but don't know how to fix it.)
jfriend
Feb-16-2009, 04:46 PM
OK, I can live with the login issue. But I'm not sure I know how to take the empty space out from under the banner image?
Also, is it possible to put a navbar text for featured galleries? If so, how? (I think I am hiding featured galleries, but don't know how to fix it.)
I see you already made your banner image smaller, but you didn't fix the size dimensions.
Update the height in this CSS:
#my_banner {
width: 300px;
height: 75px;
margin: 0 left;
background: url(http://photosbyross.smugmug.com/photos/475066915_tWqDS-O.png) no-repeat;
_background: none;
_filter:progid:DXImageTransform.Microsoft.AlphaIma geLoader(enabled=true,sizingmethod=image,src='http ://photosbyross.smugmug.com/photos/475066915_tWqDS-O.png');
}
You could crop out even more space above it if you wanted (by editing the image).
Then, adjust the click area in your custom header, by changing this in your custom header:
<img src="/img/spacer.gif" width="300" border="0" height="75">
For featured galleries, you can enable them by going to the homepage layout button and checking featured galleries and then featuring some galleries. You have a lot of galleries in your gallery display. Have you considered switching to category view instead of gallery view?
papaross
Feb-16-2009, 07:09 PM
I see you already made your banner image smaller, but you didn't fix the size dimensions.
Update the height in this CSS:
#my_banner {
width: 300px;
height: 75px;
margin: 0 left;
background: url(http://photosbyross.smugmug.com/photos/475066915_tWqDS-O.png) no-repeat;
_background: none;
_filter:progid:DXImageTransform.Microsoft.AlphaIma geLoader(enabled=true,sizingmethod=image,src='http ://photosbyross.smugmug.com/photos/475066915_tWqDS-O.png');
}
You could crop out even more space above it if you wanted (by editing the image).
Then, adjust the click area in your custom header, by changing this in your custom header:
<img src="/img/spacer.gif" width="300" border="0" height="75">
For featured galleries, you can enable them by going to the homepage layout button and checking featured galleries and then featuring some galleries. You have a lot of galleries in your gallery display. Have you considered switching to category view instead of gallery view?
I am unable to view featured galleries that way, or any other way, because I think it is being hidden behind the header, but I don't know how to fix the code.
jfriend
Feb-16-2009, 07:15 PM
I am unable to view featured galleries that way, or any other way, because I think it is being hidden behind the header, but I don't know how to fix the code.
Your CSS is configured to show the Featured Galleries box on your galleries page (we can change that once it shows up if you want). Smugmug is not putting it into your page at all. The possible reasons I know of for Smugmug to not put it in your page are:
You haven't enabled it. Are you sure that the homepage layout button has a check by Featured galleries?
It could be at the bottom of your long list of galleries so maybe you didn't see it.
You haven't actually featured any galleries yet so there's nothing to put in it.
papaross
Feb-16-2009, 07:30 PM
Your CSS is configured to show the Featured Galleries box on your galleries page (we can change that once it shows up if you want). Smugmug is not putting it into your page at all. The possible reasons I know of for Smugmug to not put it in your page are:
You haven't enabled it. Are you sure that the homepage layout button has a check by Featured galleries?
It could be at the bottom of your long list of galleries so maybe you didn't see it.
You haven't actually featured any galleries yet so there's nothing to put in it.
OK, now it works, when I put a gallery in it. What I would like to do is have another button on my navbar that says "featured galleries", and only the featured galleries, along with the header bar would be displayed when it was clicked. Possible?
jfriend
Feb-16-2009, 07:41 PM
OK, now it works, when I put a gallery in it. What I would like to do is have another button on my navbar that says "featured galleries", and only the featured galleries, along with the header bar would be displayed when it was clicked. Possible? That is a bunch more work. Whereas you have two copies of your homepage now with different things showing on them, we have to make three copies (homepage, galleries, featured). It involves making CSS changes, HTML changes to your header and making javascript changes to identify the featured pages. Are you sure you want to do all that rather than just position the featured galleries box either below your slideshow on the homepage or above your list of galleries on the galleries page? We can go either way, I just want to make sure you want to make a new page.
papaross
Feb-16-2009, 07:59 PM
That is a bunch more work. Whereas you have two copies of your homepage now with different things showing on them, we have to make three copies (homepage, galleries, featured). It involves making CSS changes, HTML changes to your header and making javascript changes to identify the featured pages. Are you sure you want to do all that rather than just position the featured galleries box either below your slideshow on the homepage or above your list of galleries on the galleries page? We can go either way, I just want to make sure you want to make a new page.
I understand. I'm willing to go the "bunch more work" route if you are. I'm not sure what the "rules" are here. You've already done a lot to help me. But if you have the time and are willing, I am. I'm retired.:D I do want to point out that I am in Charleston, SC, i.e. EST, so it is 11PM here. If you respond right away, you probably won't hear back from me until tomorrow. I'm going to bed. Hope to talk to you tomorrow.
jfriend
Feb-16-2009, 08:16 PM
I understand. I'm willing to go the "bunch more work" route if you are. I'm not sure what the "rules" are here. You've already done a lot to help me. But if you have the time and are willing, I am. I'm retired.:D I do want to point out that I am in Charleston, SC, i.e. EST, so it is 11PM here. If you respond right away, you probably won't hear back from me until tomorrow. I'm going to bed. Hope to talk to you tomorrow.
I'm a volunteer so I will help as long as I have time. I'm traveling tomorrow and then will not be online much for the next week.
Here's what you would have to do to create the "featured" page. If you run into glitches, hopefully someone else will help sort you out.
Step 1:
In your Bottom Javascript, where you have this code add the new code in red:
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
if (hasPath("featured"))
YD.addClass(document.body, "featured");
Step 2:
Change this CSS rule from this:
.galleries #galleriesBox,
.galleries #categoriesBox,
.galleries #featuredBox {
display: block;
}
to this:
.galleries #galleriesBox,
.galleries #categoriesBox {
display: block;
}
Step 3:
Add this CSS:
.featured #featuredBox, {display:block;}
.featured #bioBox {display:none;}
Step 4:
Add this line to your navbar definition in your custom header:
<li><a href="/featured">Featured Galleries</a></li>
papaross
Feb-17-2009, 11:59 AM
I'm a volunteer so I will help as long as I have time. I'm traveling tomorrow and then will not be online much for the next week.
Here's what you would have to do to create the "featured" page. If you run into glitches, hopefully someone else will help sort you out.
Step 1:
In your Bottom Javascript, where you have this code add the new code in red:
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
if (hasPath("featured"))
YD.addClass(document.body, "featured");
Step 2:
Change this CSS rule from this:
.galleries #galleriesBox,
.galleries #categoriesBox,
.galleries #featuredBox {
display: block;
}
to this:
.galleries #galleriesBox,
.galleries #categoriesBox {
display: block;
}
Step 3:
Add this CSS:
.featured #featuredBox, {display:block;}
.featured #bioBox {display:none;}
Step 4:
Add this line to your navbar definition in your custom header:
<li><a href="/featured">Featured Galleries</a></li>
It all seems to work, but no featured galleries appear when I hit the button. I know that 3 galleries are assigned, so to speak, as I checked, and I know that the homepage layout is checked. (maybe I have to feature the gallery #('s) in the custome header??)
Also, having added "featured" in the navbar, it now looks jumbled together. Can we add the vertical line (I think it has a name) between the buttons?
If jfriend is not available , can someone else help?
jfriend
Feb-17-2009, 05:52 PM
It all seems to work, but no featured galleries appear when I hit the button. I know that 3 galleries are assigned, so to speak, as I checked, and I know that the homepage layout is checked. (maybe I have to feature the gallery #('s) in the custome header??)
Also, having added "featured" in the navbar, it now looks jumbled together. Can we add the vertical line (I think it has a name) between the buttons?
If jfriend is not available , can someone else help?
Remove the comma in red and it will show up. That was a typo in my post.
.featured #featuredBox, {display:block;}
papaross
Feb-18-2009, 06:56 AM
Remove the comma in red and it will show up. That was a typo in my post.
.featured #featuredBox, {display:block;}
Thank you so much for your help. I'm believe I'm where I want to be right now, except for the pipes mentioned in last post. I'm sure some other things might come up in the future. Your mentioned grouping some of my galleries. The reason I haven't is because it is in time order and the friends and family who look at my site are use to it that way. Again thanks
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.