Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #501563

    Hi,

    I want to justify the header menu. What code can i use for this?
    I tried the following code but no luck. I use the Logo center/menu center option.

    .main_menu ul:first-child > li > a { text-transform: uppercase; font-size:20px;text-align: justify;
        text-justify: inter-word;}

    THX Freek

    #501755

    Hi Freek!

    I don’t think your going to be able to justify that. You could set each list item to have a certain width but it would look weird depending on the amount of links you have. Also it wouldn’t be very responsive.

    It would be possible for the sub menu links because they are all the same width and they will display the same if the screen gets resized.

    Cheers!
    Elliott

    • This reply was modified 9 years ago by Elliott.
    #501767

    I think you are right but i will give it a try. What css code code can i use for fixed menu item width?
    THX Freek

    #501828

    Hi!

    This CSS will give them a fixed width.

    .av-main-nav > li {
      width: 20%;
    }
    .av-main-nav > li > a { width: 100%; }
    

    Best regards,
    Elliott

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.