PDA

View Full Version : Placement of Banner and Navbar


soloshooter
Jan-27-2009, 02:22 AM
I have followed most of the instructions for inserting a custom text logo and navbar into my page and I am stuck. I would like both my logo and navbar to be on the same line, and the logo to be left-justified. In addition, there seems to be a large space between my header and the slide show, is there anything I can do to decrease this distance?

http://soloshots.smugmug.com/

-"Try to find the best in everyone, no matter how long they take to show it"

J Allen
Jan-27-2009, 05:50 AM
Check and see if you have External Links Enabled for the gallery the your logo is in

Allen
Jan-27-2009, 07:13 AM
I have followed most of the instructions for inserting a custom text logo and navbar into my page and I am stuck. I would like both my logo and navbar to be on the same line, and the logo to be left-justified. In addition, there seems to be a large space between my header and the slide show, is there anything I can do to decrease this distance?

http://soloshots.smugmug.com/

-"Try to find the best in everyone, no matter how long they take to show it"
Change your header html to this.

<div id="my_header">

<div id="my_banner"> </div>

<div id="navcontainer">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/gallery/XXXXXXX_YYYYY">About Me</a></li>
<li><a href="/galleries">Galleries</a></li>
<li><a href="/gallery/XXXXXXX_YYYYY">Information</a></li>
<li><a href="/gallery/XXXXXXX_YYYYY">Guestbook</a></li>
</ul>
</div> <!-- closes navcontainer -->

</div> <!-- closes my_header -->

Change your whole CSS to this, fixed a few errors. Need to turn on external
links in the banner gallery and make sure photo is not checked "hide".

body {
font-family: Segoe Print !important;
background-color: #191919;
}

#header_wrapper, #footer_wrapper, #cobrand_footer, #header,
#smugmug, .smugmug #header, .smugmug #footer {margin-left: 15px;margin-right: 15px;min-width: 755px;
width: auto;
}

#my_header {
height: 120px;
border-bottom: 1px solid #ccc;
margin: 0 40px 15px; /* top right/left bottom*/
padding: 0 20px;
}

#my_banner {
display: none;
width: 360px;
height: 120px;
margin: 0 auto;
background: url(/photos/462708242_ozebM-O.png) no-repeat;
_background: none;
_filter:progid:DXImageTransform.Microsoft.AlphaIma geLoader(enabled=true,
sizingmethod=image,src='/photos/462708242_ozebM-O.png');
}

#navcontainer {
float: right;
margin: -30px 0 0; /* top right/left bottom */
}

#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}

#navcontainer ul li {
display: inline;
}

#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #FFF;
background-color: #000;
font-family: Segoe Print;
}

#navcontainer ul li a:hover {
color: #CCC;
background-color: #000;
}


#bioBox .photo {display: none;}

#userBio {text-align: center !important;}

/* hides your name (including any 's) */
#userName {display: none;}

/* hides the word home */
#userHome {display: none;}

/* turn off the login link on the minifooter */
.loginLink {display: none; }

/* turn off the cart link on the minifooter */
.cartlink_footer {display: none; }

#feeds {display:none;}


.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #featuredBox {
display: none;
}

.galleries #bioBox {display: none;}

.galleries #galleriesBox,
.galleries #categoriesBox,
.galleries #featuredBox {
display: block;
}

soloshooter
Jan-27-2009, 11:05 AM
Thanks for your suggestions, friend. The navbar is now on the right side, but the logo has now disappeared? I went into the gallery, selected the external link option and there is no change. In addition, there is a large space between the logo/navbar and the top of the page. How do I close this gap?

Thank you for your efforts!



Change your header html to this.

<div id="my_header">

<div id="my_banner"> </div>

<div id="navcontainer">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/gallery/XXXXXXX_YYYYY">About Me</a></li>
<li><a href="/galleries">Galleries</a></li>
<li><a href="/gallery/XXXXXXX_YYYYY">Information</a></li>
<li><a href="/gallery/XXXXXXX_YYYYY">Guestbook</a></li>
</ul>
</div> <!-- closes navcontainer -->

</div> <!-- closes my_header -->

Change your whole CSS to this, fixed a few errors. Need to turn on external
links in the banner gallery and make sure photo is not checked "hide".

body {
font-family: Segoe Print !important;
background-color: #191919;
}

#header_wrapper, #footer_wrapper, #cobrand_footer, #header,
#smugmug, .smugmug #header, .smugmug #footer {margin-left: 15px;margin-right: 15px;min-width: 755px;
width: auto;
}

#my_header {
height: 120px;
border-bottom: 1px solid #ccc;
margin: 0 40px 15px; /* top right/left bottom*/
padding: 0 20px;
}

#my_banner {
display: none;
width: 360px;
height: 120px;
margin: 0 auto;
background: url(/photos/462708242_ozebM-O.png) no-repeat;
_background: none;
_filter:progid:DXImageTransform.Microsoft.AlphaIma geLoader(enabled=true,
sizingmethod=image,src='/photos/462708242_ozebM-O.png');
}

#navcontainer {
float: right;
margin: -30px 0 0; /* top right/left bottom */
}

#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}

#navcontainer ul li {
display: inline;
}

#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #FFF;
background-color: #000;
font-family: Segoe Print;
}

#navcontainer ul li a:hover {
color: #CCC;
background-color: #000;
}


#bioBox .photo {display: none;}

#userBio {text-align: center !important;}

/* hides your name (including any 's) */
#userName {display: none;}

/* hides the word home */
#userHome {display: none;}

/* turn off the login link on the minifooter */
.loginLink {display: none; }

/* turn off the cart link on the minifooter */
.cartlink_footer {display: none; }

#feeds {display:none;}


.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #featuredBox {
display: none;
}

.galleries #bioBox {display: none;}

.galleries #galleriesBox,
.galleries #categoriesBox,
.galleries #featuredBox {
display: block;
}

soloshooter
Jan-27-2009, 12:36 PM
I found the reason that the logo was not showing up, it was a missing / in the CSS. The only thing that I cannot figure out is getting logo/nav on same line and closing the gap between top-of-page and text.

Thanks for your help!

Change your header html to this.

<div id="my_header">

<div id="my_banner"> </div>

<div id="navcontainer">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/gallery/XXXXXXX_YYYYY">About Me</a></li>
<li><a href="/galleries">Galleries</a></li>
<li><a href="/gallery/XXXXXXX_YYYYY">Information</a></li>
<li><a href="/gallery/XXXXXXX_YYYYY">Guestbook</a></li>
</ul>
</div> <!-- closes navcontainer -->

</div> <!-- closes my_header -->

Change your whole CSS to this, fixed a few errors. Need to turn on external
links in the banner gallery and make sure photo is not checked "hide".

body {
font-family: Segoe Print !important;
background-color: #191919;
}

#header_wrapper, #footer_wrapper, #cobrand_footer, #header,
#smugmug, .smugmug #header, .smugmug #footer {margin-left: 15px;margin-right: 15px;min-width: 755px;
width: auto;
}

#my_header {
height: 120px;
border-bottom: 1px solid #ccc;
margin: 0 40px 15px; /* top right/left bottom*/
padding: 0 20px;
}

#my_banner {
display: none;
width: 360px;
height: 120px;
margin: 0 auto;
background: url(/photos/462708242_ozebM-O.png) no-repeat;
_background: none;
_filter:progid:DXImageTransform.Microsoft.AlphaIma geLoader(enabled=true,
sizingmethod=image,src='/photos/462708242_ozebM-O.png');
}

#navcontainer {
float: right;
margin: -30px 0 0; /* top right/left bottom */
}

#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}

#navcontainer ul li {
display: inline;
}

#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #FFF;
background-color: #000;
font-family: Segoe Print;
}

#navcontainer ul li a:hover {
color: #CCC;
background-color: #000;
}


#bioBox .photo {display: none;}

#userBio {text-align: center !important;}

/* hides your name (including any 's) */
#userName {display: none;}

/* hides the word home */
#userHome {display: none;}

/* turn off the login link on the minifooter */
.loginLink {display: none; }

/* turn off the cart link on the minifooter */
.cartlink_footer {display: none; }

#feeds {display:none;}


.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #featuredBox {
display: none;
}

.galleries #bioBox {display: none;}

.galleries #galleriesBox,
.galleries #categoriesBox,
.galleries #featuredBox {
display: block;
}

soloshooter
Jan-28-2009, 03:03 AM
After installing the Firefox developer tool, this web design has turned into a D-lite, rather than a D-saster. Thanks to Denise and Ivar for making mention of the wonderful tool.:ivar

I found the reason that the logo was not showing up, it was a missing / in the CSS. The only thing that I cannot figure out is getting logo/nav on same line and closing the gap between top-of-page and text.

Thanks for your help!