View Full Version : Logo and navbar alignment
chaseit1
Dec-19-2008, 02:09 PM
Hi,I'm back...My name is dave and my site is clarksmotorsportsimaging.net. On all my pages I would like the navbar to be at the same vertical alignment as my logo,Not sure what to change there.
Also there is a substantial gap between the logo and my slideshow or content on all my pages(verticaly)...I would like to shorten that up if possible so that the whole page is visible without scrolling. Don't know if that can be done..Thanks in advance for any direction you can give...dave
Allen
Dec-19-2008, 02:24 PM
Hi,I'm back...My name is dave and my site is clarksmotorsportsimaging.net. On all my pages I would like the navbar to be at the same vertical alignment as my logo,Not sure what to change there.
Also there is a substantial gap between the logo and my slideshow or content on all my pages(verticaly)...I would like to shorten that up if possible so that the whole page is visible without scrolling. Don't know if that can be done..Thanks in advance for any direction you can give...dave
Change the height in this to lose the gap.
.smuglogo {
width: 250px !important;
height: 100px !important;
filter:progid:DXImageTransform.Microsoft.AlphaImag eLoader(enabled=true,
sizingMethod=image src='http://www.clarksmotorsportsimaging.net/photos/435311596_kEWJ5-250x200.jpg') !important;
}
Add some top margin
#navcontainer ul {
margin: 50px 0 0; /* top right/left bottom */
padding: 0;
list-style-type: none;
font-size: 20px;
_font-size: 16px;
font-variant: large-caps;
float: right;
}
chaseit1
Dec-19-2008, 03:40 PM
Hi,I'm back...My name is dave and my site is clarksmotorsportsimaging.net. On all my pages I would like the navbar to be at the same vertical alignment as my logo,Not sure what to change there.
Also there is a substantial gap between the logo and my slideshow or content on all my pages(verticaly)...I would like to shorten that up if possible so that the whole page is visible without scrolling. Don't know if that can be done..Thanks in advance for any direction you can give...dave
:clapOk thanks Allen, although now I would like to slightly increase the size of the font in my navbar...and I've added what I thought would get rid of the breadcrumb trail for my pages Video,Links & Contact us.because they are html only pages and 1 page is all you get...I think this is about it for now ...Thanks for listening
Allen
Dec-19-2008, 03:54 PM
:clapOk thanks Allen, although now I would like to slightly increase the size of the font in my navbar...pages and I've added what I thought would get rid of the breadcrumb trail for my pages Video,Links & Contact us.because they are html only pages and 1 page is all you get...I think this is about it for now ...Thanks for listening Add the font size to this.
#navcontainer ul li a {
text-decoration: none;
padding: 0px 10px;
color: #fff;
font-size: 12pt;
}
Change all this
/* html only page for gallery Contact Us */
.gallery_Contact Us .nophotos { display: none; }
.notLoggedIn .gallery_categories #breadCrumbTrail {visibility: hide;}
}
/* html only page for gallery Links */
.gallery_Links .nophotos { display: none; }
.notLoggedIn .gallery_links #breadCrumbTrail {visibility: hide;}
}
/* html only page for gallery Video */
.gallery_Video .nophotos { display: none; }
.notLoggedIn .gallery_video #breadCrumbTrail {visibility: hide;}
to this
/* html only page for gallery Contact Us */
.gallery_6804815 .nophotos h3 { display: none; }
.notLoggedIn .gallery_6804815 #breadCrumbTrail {visibility: hidden;}
/* html only page for gallery Links */
.gallery_6804847 .nophotos h3 { display: none; }
.notLoggedIn .gallery_6804847 #breadCrumbTrail {visibility: hidden;}
/* html only page for gallery Video */
.gallery_6857112 .nophotos h3 { display: none; }
.notLoggedIn .gallery_6857112 #breadCrumbTrail {visibility: hidden;}
chaseit1
Dec-19-2008, 04:33 PM
Add the font size to this.
#navcontainer ul li a {
text-decoration: none;
padding: 0px 10px;
color: #fff;
font-size: 12pt;
}
Change all this
/* html only page for gallery Contact Us */
.gallery_Contact Us .nophotos { display: none; }
.notLoggedIn .gallery_categories #breadCrumbTrail {visibility: hide;}
}
/* html only page for gallery Links */
.gallery_Links .nophotos { display: none; }
.notLoggedIn .gallery_links #breadCrumbTrail {visibility: hide;}
}
/* html only page for gallery Video */
.gallery_Video .nophotos { display: none; }
.notLoggedIn .gallery_video #breadCrumbTrail {visibility: hide;}
to this
/* html only page for gallery Contact Us */
.gallery_6804815 .nophotos h3 { display: none; }
.notLoggedIn .gallery_6804815 #breadCrumbTrail {visibility: hidden;}
/* html only page for gallery Links */
.gallery_6804847 .nophotos h3 { display: none; }
.notLoggedIn .gallery_6804847 #breadCrumbTrail {visibility: hidden;}
/* html only page for gallery Video */
.gallery_6857112 .nophotos h3 { display: none; }
.notLoggedIn .gallery_6857112 #breadCrumbTrail {visibility: hidden;}
:barbThanks so much Allen you are the MAN... Worked perfect
dave
amandapair
Dec-21-2008, 07:01 PM
Hi,I'm back...My name is dave and my site is clarksmotorsportsimaging.net. On all my pages I would like the navbar to be at the same vertical alignment as my logo,Not sure what to change there.
Also there is a substantial gap between the logo and my slideshow or content on all my pages(verticaly)...I would like to shorten that up if possible so that the whole page is visible without scrolling. Don't know if that can be done..Thanks in advance for any direction you can give...dave
Allen, I am trying to do basically the same thing as above, except I am changing from a full banner to this style. I tried to follow the instructions at Andy's Demo Page, but no images loaded, and my navbar lined up as bullets. I ended up cancelling the changes I tried and left the code alone. I have a lot of customization and am afraid to mess with the code too much. Can you help?
www.amandapair.com (http://www.amandapair.com)
Thanks in advance for any advice you can offer!
Allen
Dec-21-2008, 07:37 PM
Allen, I am trying to do basically the same thing as above, except I am changing from a full banner to this style. I tried to follow the instructions at Andy's Demo Page, but no images loaded, and my navbar lined up as bullets. I ended up cancelling the changes I tried and left the code alone. I have a lot of customization and am afraid to mess with the code too much. Can you help?
www.amandapair.com (http://www.amandapair.com)
Thanks in advance for any advice you can offer!
Try this
Add the my_header div around the banner and nav in your header.
<div id="my_header">
<div id="my_banner"> </div>
<div id="navcontainer">
<ul>
<li><a href="/">home</a></li>
<li><a href="/gallery/6356179_f4Lbx">portfolio</a></li>
<li><a href="/galleries">galleries</a></li>
<li><a href="/gallery/6652757_rEWvt">pricing</a></li>
<li><a href="/gallery/6819933_KVpTd">about me</a></li>
<li><a href="/gallery/6356249_wamVG">contact</a></li>
</ul>
</div> <!-- closes navcontainer -->
</div> <!-- closes my_header -->
Change/add the red in your CSS
/* ----------------------------- */
/* ---------- HEADER ----------- */
/* ----------------------------- */
#my_header {
height: 55px;
border-bottom: 1px solid #ccc;
margin: 0 40px 15px; /* top right/left bottom*/
padding: 0 10px;
}
#my_banner {
width: 675px;
height: 55px;
margin: 0; /* top/bottom right/left */
background: url(http://amandapair.smugmug.com/photos/431408833_3phgS-S.jpg) no-repeat;
}
/* ----------------------------- */
/* ---------- NAV BAR ---------- */
/* ----------------------------- */
#navcontainer {
float: right;
margin: -20px 0 0; /* top right/left bottom */
}
...
...
#navcontainer ul li a {
text-decoration: none;
padding: .25em .8em; /* spreads out buttons */
color: #928d8d;
background-color: #ffffff;
}
amandapair
Dec-21-2008, 07:58 PM
Try this
Add the my_header div around the banner and nav in your header.
<div id="my_header">
<div id="my_banner"> </div>
<div id="navcontainer">
<ul>
<li><a href="/">home</a></li>
<li><a href="/gallery/6356179_f4Lbx">portfolio</a></li>
<li><a href="/galleries">galleries</a></li>
<li><a href="/gallery/6652757_rEWvt">pricing</a></li>
<li><a href="/gallery/6819933_KVpTd">about me</a></li>
<li><a href="/gallery/6356249_wamVG">contact</a></li>
</ul>
</div> <!-- closes navcontainer -->
</div> <!-- closes my_header -->
Change/add the red in your CSS
/* ----------------------------- */
/* ---------- HEADER ----------- */
/* ----------------------------- */
#my_header {
height: 55px;
border-bottom: 1px solid #ccc;
margin: 0 40px 15px; /* top right/left bottom*/
padding: 0 10px;
}
#my_banner {
width: 675px;
height: 55px;
margin: 0; /* top/bottom right/left */
background: url(http://amandapair.smugmug.com/photos/431408833_3phgS-S.jpg) no-repeat;
}
/* ----------------------------- */
/* ---------- NAV BAR ---------- */
/* ----------------------------- */
#navcontainer {
float: right;
margin: -20px 0 0; /* top right/left bottom */
}
...
...
#navcontainer ul li a {
text-decoration: none;
padding: .25em .8em; /* spreads out buttons */
color: #928d8d;
background-color: #ffffff;
}
That didn't work. I left the page as is so you could see. (The only thing I changed in what you have above is the height - my image is 146 px high.)
Any other suggestions?
Allen
Dec-21-2008, 08:08 PM
That didn't work. I left the page as is so you could see. (The only thing I changed in what you have above is the height - my image is 146 px high.)
Any other suggestions? Change this
...
... to this
#navcontainer ul li {
display: inline;
}
Change the red in this
#my_header {
height: 55px;
border-bottom: 1px solid #ccc;
margin: 0 40px 15px; /* top right/left bottom*/
padding: 0 10px;
}
In your header change the red
<div id="my_header">
<div id="my_header"> </div>
<div id="navcontainer"> to this
<div id="my_header">
<div id="my_banner"> </div>
<div id="navcontainer">
Change the red in this
#navcontainer {
float: right;
margin: -30px 0 0; /* top right/left bottom */
}
amandapair
Dec-21-2008, 08:28 PM
Change this
...
... to this
#navcontainer ul li {
display: inline;
}
Change the red in this
#my_header {
height: 55px;
border-bottom: 1px solid #ccc;
margin: 0 40px 15px; /* top right/left bottom*/
padding: 0 10px;
}
In your header change the red
<div id="my_header">
<div id="my_header"> </div>
<div id="navcontainer"> to this
<div id="my_header">
<div id="my_banner"> </div>
<div id="navcontainer">
Change the red in this
#navcontainer {
float: right;
margin: -30px 0 0; /* top right/left bottom */
}
I had it all messed up, didn't I? - sorry. Thank you for being patient.
I used your code and tweaked it just a little bit more. One last thing... how do I get it to center?
Allen
Dec-21-2008, 08:33 PM
I had it all messed up, didn't I? - sorry. Thank you for being patient.
I used your code and tweaked it just a little bit more. One last thing... how do I get it to center?
If you disable the width in this, it will stretch to fit all pages.
#my_header {
height: 105px;
/* width: 750px; */
border-bottom: 1px solid #ccc;
margin: 0 40px 15px; /* top right/left bottom*/
padding: 0 10px;
}
OR
If you leave the width in and change the margin: 0 auto; it will stay the 750
width and center. Comment tags around things will disable it.
#my_header {
height: 105px;
width: 750px;
border-bottom: 1px solid #ccc;
/* margin: 0 40px 15px; */ /* top right/left bottom*/
margin: 0 auto;
padding: 0 10px;
}
amandapair
Dec-21-2008, 08:38 PM
If you disable the width in this, it will stretch to fit all pages.
#my_header {
height: 105px;
/* width: 750px; */
border-bottom: 1px solid #ccc;
margin: 0 40px 15px; /* top right/left bottom*/
padding: 0 10px;
}
OR
If you leave the width in and change the margin: 0 auto; it will stay the 750
width and center. Comment tags around things will disable it.
#my_header {
height: 105px;
width: 750px;
border-bottom: 1px solid #ccc;
/* margin: 0 40px 15px; */ /* top right/left bottom*/
margin: 0 auto;
padding: 0 10px;
}
I added the width b/c it was so big when it stretched across the monitor. Thank you, thank you for your help. You saved me hours of time.
CDpayet
Dec-28-2008, 06:26 PM
Change the height in this to lose the gap.
.smuglogo {
width: 250px !important;
height: 100px !important;
filter:progid:DXImageTransform.Microsoft.AlphaImag eLoader(enabled=true,
sizingMethod=image src='http://www.clarksmotorsportsimaging.net/photos/435311596_kEWJ5-250x200.jpg') !important;
}
Add some top margin
#navcontainer ul {
margin: 50px 0 0; /* top right/left bottom */
padding: 0;
list-style-type: none;
font-size: 20px;
_font-size: 16px;
font-variant: large-caps;
float: right;
}
Alan, I was looking through my code (cdpayetphotography.smugmug.com) to see if I could find where this is, but as it's still a foreign language to me, I probably missed it.
In which box does this code need to be added to close the gap?
Also, I want to move my navbar DOWN and have a bit of space between my banner and the navbar.
And THEN I want to get rid of the blue boxes and increase the font size, but I don't know where that stuff goes, either.
I'm sure you get tired of these questions, and I'm sure the answer is already here somewhere, but I just get completely lost. Many thanks!!!
Allen
Dec-28-2008, 08:03 PM
Alan, I was looking through my code (cdpayetphotography.smugmug.com) to see if I could find where this is, but as it's still a foreign language to me, I probably missed it.
In which box does this code need to be added to close the gap?
Also, I want to move my navbar DOWN and have a bit of space between my banner and the navbar.
And THEN I want to get rid of the blue boxes and increase the font size, but I don't know where that stuff goes, either.
I'm sure you get tired of these questions, and I'm sure the answer is already here somewhere, but I just get completely lost. Many thanks!!!
First, remove the red from the bottom of your header, that's not how to make the banner a link.
...
...
<li><a href="/gallery/_HmLPX"></a></li>
</ul>
</div>
<a href="/gallery/_HmLPX">
</a>
<div id="my_header">
<a href="http://cdpayetphotography.smugmug.com">
<img src="/img/spacer.gif" width="605" border="0" height="70">
</a>
</div>
and chnage your banner html to this so it's clickable to your homepage
<div id="my_banner">
<a href="/ height="150">
</a>
</div>
In nyour CSS a the red bottom margin.
#my_banner {
width: 800px;
height: 160px;
margin: 0 auto 5px; /* top right/left bottom */
background: url(http://cdpayetphotography.smugmug.com/photos/436232797_MwQJv-O.jpg) no-repeat;
}
Find these two in your CSS and change/add the bold.
#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #fff;
background: none;
font-size: 120%;
}
#navcontainer ul li a:hover {
color: #ccc;
background: none;
}
CDpayet
Dec-28-2008, 11:28 PM
Allen, got some of it to work, but now I have the same problem as a poster on page 1 of this thread -- now my navbar is a set of bullet points on the left hand side of the screen. Do I just need to do all the same fixes as you already suggested for that person, or is mine different?
Allen
Dec-29-2008, 07:09 AM
Allen, got some of it to work, but now I have the same problem as a poster on page 1 of this thread -- now my navbar is a set of bullet points on the left hand side of the screen. Do I just need to do all the same fixes as you already suggested for that person, or is mine different? You have some errors in your header html.
<div id="my_banner"> </div>
<div id="navcontainer">
<a href="/%20height=" 150="">
</a>
</div>
<ul>
<li><a href="http://cdpayetphotography.smugmug.com/">Home</a></li>
<li><a href="/gallery/">About Me</a></li>
<li><a href="http://cdpayetphotography.smugmug.com/gallery//6910701_t4u9S">For Dentists</a></li>
<li><a href="http://cdpayetphotography.smugmug.com/galleries">Galleries</a></li>
<li><a href="http://cdpayetphotography.smugmug.com/Family">Family</a></li>
<li><a href="http://cdpayetphotography.smugmug.com/gallery/6919495_Crn64/">Prints</a></li>
<li><a href="http://cdpayetphotography.smugmug.com/gallery/6910533_KFCE5/">Guestbook</a></li>
Change to this. Also changes to relative links.
<div id="my_banner"> </div>
<div id="navcontainer">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/gallery/xxxxxxx_xxxxx">About Me</a></li>
<li><a href="/gallery/6910701_t4u9S">For Dentists</a></li>
<li><a href="/galleries">Galleries</a></li>
<li><a href="/Family">Family</a></li>
<li><a href="/gallery/6919495_Crn64/">Prints</a></li>
<li><a href="/gallery/6910533_KFCE5/">Guestbook</a></li>
</ul>
</div>
CDpayet
Dec-29-2008, 07:33 AM
Do you guys ever get tired of being called geniuses? :D Thank you!
Now where do I go to choose different colors for the navbar? And can I make the text bold?
Oh yeah.......if I want to make my banner smaller, do I need to actually upload a smaller file to replace the current one, or can I just change some numbers somewhere to make it smaller?
Allen
Dec-29-2008, 07:44 AM
Do you guys ever get tired of being called geniuses? :D Thank you!
Now where do I go to choose different colors for the navbar? And can I make the text bold?
Oh yeah.......if I want to make my banner smaller, do I need to actually upload a smaller file to replace the current one, or can I just change some numbers somewhere to make it smaller?
Set the size to anything you like.
#my_banner {
width: 780px;
height: 160px;
margin: 0 auto 5px; /* top right/left bottom */
background: url(http://cdpayetphotography.smugmug.com/photos/436232797_MwQJv-780x160.jpg) no-repeat;
}
Add the bold to this. Set the text with the color in this also.
#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #fff;
background: none;
font-size: 120%;
font-weight: bold;
}
hover color in this
#navcontainer ul li a:hover {
color: #ccc;
background: none;
}
CDpayet
Dec-29-2008, 03:26 PM
Allen, I am just about done at this point for what I want to do, although I still need to actually create the About Me page. My only question remaining for the moment is:
Where can I find out what the codes are for the different colors I can choose for the text in the navbar? Say I want them a Carolina Blue (Go Heels!!!:D) or a forrest green?
After this I want to change some things about the location, size, font, etc. in the text within each page, but I guess that's a different thread, right?
Allen
Dec-29-2008, 07:49 PM
Allen, I am just about done at this point for what I want to do, although I still need to actually create the About Me page. My only question remaining for the moment is:
Where can I find out what the codes are for the different colors I can choose for the text in the navbar? Say I want them a Carolina Blue (Go Heels!!!:D) or a forrest green?
After this I want to change some things about the location, size, font, etc. in the text within each page, but I guess that's a different thread, right?
You can get the color codes here.
http://www.december.com/html/spec/color.html
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.