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

    Hello,

    we are using the Split Menu, coming up with that code:

    @media only screen and (min-width: 780px) {
    /*In the below code nth-child(x) the value of x should be half the number of total menu items*/
    #top #header .av-main-nav li:nth-child(3) {
      /* Adjust the width of the logo */
        margin-right: 250px;
    }
    
    #header .main_menu {
        /*background: gold;*/
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .av-main-nav-wrap {
        left: 50%;
        transform: translateX(-50%);
    }
    
    #header .logo {
        left: 50%;
        transform: translateX(-50%);
        z-index:999;
    }
    
    #header .logo img {    
        top: 50%;
        transform: translateY(-50%);
        max-width: 100px;  
    }
    }

    We also set the width to 100%, with that one:

    #header #header_main{
        width: 100%;
        max-width: none;
    	background-color: rgba(0,0,0,0.5);
    
    }

    Now we nees Some Space bewteen the Menu Items, so it looks like:

    https://i.imgur.com/28DOjZN.png

    We can solve it with:

    span.avia-menu-text {
        margin-left:calc(70px);
    	margin-right:calc(70px);
    	text-transform: uppercase;
    }

    But there it is hard to manage the Responsive style (Margin),

    Any better way to solve that problem?

    Regards,

    #1198832

    Hey Vangone,

    Yeas, you can add more media queries for different screen sizes. Like so:

    
    @media only screen and (min-width:780px) and (max-width: 1024px){ 
        /* you code here */
    } 
    @media only screen and (min-width:1025px) and (max-width: 2400px){ 
        /* you code here */
    } 
    

    and adjust the values for the margins.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1198890

    Hey, thats exacly what I dont want, because then I need a lot of different Ranges, is there any intelligent solution, for example something like calc()?

    Regards

    #1199401

    Hi Vangone,

    You can try experimenting with it, but it might not be easy to come up with the value.

    Best regards,
    Victoria

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