Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Centering Lists

  1. #1
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Centering Lists

    Alrighty, here is what is probaly an easy one for you all.

    I have a list that I need to center where it is. Unfortunately, when this is done, all of the list items are centered as well. What I want to do is center the list itself, but have the items left aligned under the list title. Any way of making this happen?

  • #2
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can't you just put the nav in a div and align the div?
    --
    tom :)

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    A list is a block level element therefore you need to use margin:auto; not text-align:center;


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •