CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 12th, 2003, 03:33 AM
field4000 field4000 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 17 field4000 User rank is Private First Class (20 - 50 Reputation Level)field4000 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 6 m 43 sec
Reputation Power: 0
Centering list elements using CSS.

Hello.

For the life of me I can not center the <li> in the the <ul> using CSS.

Here is a link to my code: link.

What I am trying to do is make the navigation bar elements evenly spaced. I want each element to take up as much room as needed with a padding on either side so that the whole navigation bar is filled with the 6 elements. For a clearer picture of what I am trying to say:

I can do it using tables, but I am trying to do it using 100% CSS.

Thank you very much (in advance).

Field4000

Reply With Quote
  #2  
Old August 12th, 2003, 05:00 AM
Nunzio390's Avatar
Nunzio390 Nunzio390 is offline
Insignificant Peon
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Tharsis Ridge (Martian lowlands)
Posts: 192 Nunzio390 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
field4000...

Read this thread at another forum. Pay particular attention to the post by "mipapage" there, where he talks about floating your list items rather than setting them as display:inline when building a horizontal menu, as you are attempting to do.
__________________
[ - Random Thoughts - | - Killer Klowns - | - Automated Jukebox - | - Composite Sketch - | - About Nunzio - ]

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Centering list elements using CSS.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway