Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Dynamically centering of footer nav

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #154123
    jknetdesign
    Participant

    http://www.shalomcpp.com/

    I currently have a width and 0 auto margin on the .menu-footer ul

    How can I do this better somehow with a 100% width and text-align:center ?

    #154139
    Senff
    Participant

    For a list to be centered dynamically, always follow these rules:

    • the UL should have no width assigned, should be inline (not block-level, so don’t float it) and should have text-align:center;

    • anything within the UL (LI’s and whatever the LI’s contain) should be of type display:inline; — so make sure nothing in there is floated (which will give it a block-level automatically).

    Also, there’s a load of empty links in your footer; better get rid of those.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.