[Resolved] Navigation : size element

Home Forums Support [Resolved] Navigation : size element

Home Forums Support Navigation : size element

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

    I want fixed all element of menu with 120px

    In simple css i have this :
    .main-navigation .main-nav ul li a, .menu-toggle, .main-navigation .mobile-bar-items a{width:12px}
    but don’t work.

    how i can do this ? thx

    GeneratePress 2.1.3
    GP Premium 1.6.2
    #614993
    David
    Staff
    Customer Support

    Hi there,

    try:

    .main-navigation ul li, .mobile-bar-items a  {
    	width:120px;
    	box-sizing: border-box;
    }
    #615191
    Thierry

    great, it’s ok, thanks

    #615201
    David
    Staff
    Customer Support

    did it work or did you give up 🙂 its a pain elements that are mainly sized by padding, the box-sizing property keeps the padding inside the container size, so it dont grow, but i can imagine 120px may get a little tight for menu items.

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