Forums

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

Home Forums CSS Equally spread ul links of different widths

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

    How can I equally spread links in a ul that have different widths? What’s the best way to have full control with the padding or margin? http://www.sierrainstruments.com/james/center-this-list.html

    #99147
    Johnnyb
    Member

    You mean like this? http://jsfiddle.net/K6Q8d/1/

    Otherwise you could use some jQuery to grab the width of the text and alter the padding for each one that way.

    #99168
    wolfcry911
    Participant

    add these:

    #menu {
    float: left;
    position: relative;
    left: 50%;
    }

    #menu li {
    position: relative;
    left: -50%;
    }
    #99203
    jknetdesign
    Participant

    Thanks to both of you. Is there a way to resolve this thread?

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