|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Constantly Amazed
|
Navbar Positioning Help, Please
I am finally getting time to do some more customizing. I am getting pretty close to making my SmugMug site (http://photos.bradfordbenn.com/) look closer to my text site (http://www.bradfordbenn.com/). Currently the problem I am having is positioning the Navigation Bar I created.
If you look at http://photos.bradfordbenn.com/ you can see how the Navigation Bar is in the center. If I do not include the align="center" command it goes far left. I placed it in the "center" to make it less objectionable while working to fix it. My goal is to have it aligned with the SmugMug Pro Logo, slide show, breadcrumbs... etc. I thought about just setting a table width and winging it to look close, however that would not be right either as when the page layout changes such as on my travel gallery http://photos.bradfordbenn.com/Trave...16137038_HjAT2 I would like the navbar to be aligned still. Ultimately I am wanting to add the search box to my navbar and remove the SmugMug header. I also am working on learning to do it as a pure text and CSS table instead of using images. |
|
|
|
|
#2
|
|
|
Constantly Amazed
|
<bump>
|
|
|
|
|
#3
|
|
|
Scripting dude-volunteer
|
Surround the navbar in a div. Give the div a CSS id. Using CSS set the width of the div to the same as the width of the page you're trying to match. For your homepage, to match the Smugmug logo, that would be 750px wide.
Other pages in the site might be a different width. If you want your header to do something different on those pages, then you use different CSS that targets the header on just those pages. I might ask why you are keeping the Smugmug header at all. Most people turn it off as soon as they have their own header.
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
|
#4
|
|
|
Constantly Amazed
|
Thank you John. I tried the div tag but have not been able to get it to stretch as the theme does. So if the theme is a stretchy one I would like my nav bar to go all the way left, the way the SmugMugPro logo does. If it is a fixed width to have it go to the fixed width. Perhaps the better question is what class is the SmugMug logo positioner as I was not able to ascertain it using the web developer plugin in firefox.
I am planning on getting rid of the SmugMug header once I get this stuff worked out. My ultimate goal is to make it look as similar as practical to my personal site. |
|
|
|
|
#5
|
||
|
Scripting dude-volunteer
|
Quote:
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#6
|
|
|
Constantly Amazed
|
Yes, I took the div out and just went with a center tag on the table. Once I get off this plane I will place it in a div.
|
|
|
|
|
#7
|
|
|
Constantly Amazed
|
I have added a div with an id of "BradNavTable"
|
|
|
|
|
#8
|
|
|
Scripting dude-volunteer
|
Add this CSS to left-align the navbar on all pages and used fixed width by default (homepage, categories) and go full width on gallery pages:
Code:
/* default is 750px wide container, left aligned inside the 750 with the container centered */
#BradNavTable {width: 750px; margin: 0 auto; text-align: left;}
/* on galleries pages, go all the way to left where the breadcrumb is */
.galleryPage #BradNavTable {width: auto; text-align: left;}
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
|
#9
|
|
|
Constantly Amazed
|
Sorry for the delay in response, life got in the way. The div help worked perfectly. Still have some more tweaking to do but getting much better.
Thank you for the help. Last edited by BradfordBenn; Mar-22-2011 at 05:33 PM. Reason: Typo. |
|
|
|
| Tell The World! | |
| Tags | |
| nav bar , navbar , navigation bar | |
| Similar Threads | Thread Starter | Forum | Replies | Last Post | ![]() |
| Navbar that shows which link is the current page | jfriend | SmugMug Customization | 485 | May-02-2013 09:19 PM | |
| navbar code | RogersDA | SmugMug Customization | 2 | Feb-18-2010 05:11 PM | |
| Navbar and Slideshow Positioning | CerebrusX | SmugMug Customization | 4 | Nov-30-2008 03:23 PM | |
| banner & navbar positioning relative to content | sunxsweet | SmugMug Customization | 4 | Mar-10-2008 04:02 PM | |
| Andy, I messed up my site! Help! | snapapple | SmugMug Customization | 260 | Oct-02-2006 10:47 AM | |
| Thread Tools | |
| Display Modes | |
|
|