Go Back   WAHM Forums - WAHM.com > >

Welcome to the WAHM Forums - WAHM.com.

Welcome to WAHM Forums

Already registered? Login above 

OR

To take advantage of all the site's features, become a member of the largest community of Work-At-Home Moms.

The advertising to the left will not show if you are a registered user.


Reply
 
Thread Tools Search this Thread
  #1 (permalink)  
Old 07-03-2008, 11:22 PM
AlisonMSmith's Avatar
WAHM Fanatic
Thread Starter
 
Join Date: Aug 2007
Location: United States
Posts: 1,811
Default

Hi fellow wahms:

I've finished my latest project, a 4th of July site...almost. I still have to hook up the contact form and fix a few links, etc. But one problem has stumped me.

I have a nav bar across the top, just under the header. I can't for the life of me figure out how to get it to be centered within the wrapper div.

Any of you amazing coders have a clue for me? Your help is appreciated.

Best and happy 4th of July!

Alison

Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-04-2008, 06:18 AM
Susie N's Avatar
Super WAHM
 
Join Date: Sep 2006
Location: United States, Ohio
Posts: 403
Default

This should work. To #navbar, add:

width:620px;
margin:0 auto;

Reply With Quote
  #3 (permalink)  
Old 07-05-2008, 12:32 AM
AlisonMSmith's Avatar
WAHM Fanatic
Thread Starter
 
Join Date: Aug 2007
Location: United States
Posts: 1,811
Default

Susie, thank you so much for your kind reply.

I entered that code. It did seem to center it to some extent, but it also dumped the last menu item (the "Fun" button) to the next line. :/ Any ideas?

Alison
Reply With Quote
  #4 (permalink)  
Old 07-05-2008, 03:58 AM
Susie N's Avatar
Super WAHM
 
Join Date: Sep 2006
Location: United States, Ohio
Posts: 403
Default

Hmm...it worked for me but I was using my Firefox developer's toolbar to make the changes. Try increasing the width some (probably not much more than 5px or so) until everything is on one line.
Reply With Quote
  #5 (permalink)  
Old 07-05-2008, 11:22 AM
AlisonMSmith's Avatar
WAHM Fanatic
Thread Starter
 
Join Date: Aug 2007
Location: United States
Posts: 1,811
Default

You're a genius, Susie. Thanks.

That fixed it in FF, looks the same in Safari. Isn't exactly centered in either one, but close.

But strangely it isn't centered at all in OmniWeb. Looks the same as before. [img]smileys/smiley5.gif[/img]
Reply With Quote
  #6 (permalink)  
Old 07-06-2008, 03:24 AM
Susie N's Avatar
Super WAHM
 
Join Date: Sep 2006
Location: United States, Ohio
Posts: 403
Default

I've never tested for OmniWeb. Guess I'll have to add that one to the list!

Upon looking closer (and changing the background of the container to a darker color so I could see better), I see that the nav is still not centered. I'm thinking that something somewhere else is the culprit. If I get time later, I'll take another look. [img]smileys/smiley1.gif[/img]

Reply With Quote
 
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off