WordPress.org

Ready to get started?Download WordPress

Forums

Justify navigation menu (10 posts)

  1. valklo
    Member
    Posted 3 years ago #

    How can I really justify a horizontal navigation menu in wordpress theme? I am making thematic child theme. (more about thematic: http://themeshaper.com/thematic/guide/)
    I need my navigation menu to be justify:
    # JUSTIFIED JUST AS PLAIN TEXT WOULD BE #

    But I can't figure out how can I do that?

    Here is the html and css code:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

    Please help me! Thanks!

  2. valklo
    Member
    Posted 3 years ago #

    Really nobody knows how to do that?

  3. anujasha9
    Member
    Posted 3 years ago #

    you can change the padding in this class
    #access a {
    padding: 0 3em;
    }
    This changes the right and left padding equally. So you only need to increase this value till your menu items spread the way you want.
    (ie: the above url's menu items will spread out nicely if you give 3.8em padding.)

  4. valklo
    Member
    Posted 3 years ago #

    thanks, but this wont work if I add more menu items in navigation. And I am making theme for other person who would not like to change css every time he add new menu item.

  5. allu22
    Member
    Posted 3 years ago #

    .menu ul{
    	display: table;
    	width: 100%
    }
    
    .menu li.page_item{
    	display: table-cell;
    }
  6. valklo
    Member
    Posted 3 years ago #

    I already tried this, it is not working

  7. oktoberdots
    Member
    Posted 2 years ago #

    Still no usefull answers? I've got the same problem, and even if you WOULD like to change the CSS every time, if you zoom out the last buttons appears on the next line and I don't want that to happen.

    So really guys.. no tips or tricks at all?

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    Try posting a new topic instead of posting to an 8 month old thread.

  9. oktoberdots
    Member
    Posted 2 years ago #

    Ok if you say so.. but i thought i'd only get comments about double thread if i'd do that..

  10. esmi
    Forum Moderator
    Posted 2 years ago #

    Not with such an old thread. We've had a couple of WP updates since this topic was first posted,. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic