View Single Post
  #1 (permalink)  
Old May 5th, 2008, 21:36
tonyb tonyb is offline
New Member
Join Date: May 2008
Location: Brighton, England
Age: 23
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Using a list for navigation, can you center a list?

I'm trying to raise my game and stop using tables for layout! I was given the impetus recently to improve my CSS and markup practices (thanks for your comment Welshstew ).

I learnt that using an unordered list, which you make inline, for your navigation bar/links makes sense, and I'm recreating the nav on a site in this way. The only thing is I'm a big fan of centering, and would like to center my navigation bar, but I can't work out how to do it. I can get the list onto one line, but not get the whole line to be centered. I know this is possible, I can see the footer links on http://www.yahoo.com/ are lists that are centred, but can't decipher how they've done it from the massive amount of code that makes their main page.

Any help would be much appreciated.

Tony
Reply With Quote