• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Navbar Positioning Help, Please

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Mar-11-2011, 08:42 PM
#1
BradfordBenn is offline BradfordBenn OP
Constantly Amazed
BradfordBenn's Avatar
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.
__________________
-=Bradford

Pictures | Website | Blog | Twitter | Contact
Old Mar-14-2011, 11:25 AM
#2
BradfordBenn is offline BradfordBenn OP
Constantly Amazed
BradfordBenn's Avatar
<bump>
__________________
-=Bradford

Pictures | Website | Blog | Twitter | Contact
Old Mar-14-2011, 11:41 AM
#3
jfriend is online now jfriend
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
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Mar-14-2011, 12:09 PM
#4
BradfordBenn is offline BradfordBenn OP
Constantly Amazed
BradfordBenn's Avatar
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.
__________________
-=Bradford

Pictures | Website | Blog | Twitter | Contact
Old Mar-14-2011, 12:21 PM
#5
jfriend is online now jfriend
Scripting dude-volunteer
Quote:
Originally Posted by BradfordBenn View Post
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.
I don't see the div with an id surrounding your navbar. Put it in and I'll help you with the CSS.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Mar-14-2011, 12:36 PM
#6
BradfordBenn is offline BradfordBenn OP
Constantly Amazed
BradfordBenn's Avatar
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.
__________________
-=Bradford

Pictures | Website | Blog | Twitter | Contact
Old Mar-14-2011, 06:40 PM
#7
BradfordBenn is offline BradfordBenn OP
Constantly Amazed
BradfordBenn's Avatar
I have added a div with an id of "BradNavTable"
__________________
-=Bradford

Pictures | Website | Blog | Twitter | Contact
Old Mar-14-2011, 07:08 PM
#8
jfriend is online now jfriend
Scripting dude-volunteer
Quote:
Originally Posted by BradfordBenn View Post
I have added a div with an id of "BradNavTable"
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
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Mar-22-2011, 05:32 PM
#9
BradfordBenn is offline BradfordBenn OP
Constantly Amazed
BradfordBenn's Avatar
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.
__________________
-=Bradford

Pictures | Website | Blog | Twitter | Contact

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

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump