-
AuthorPosts
-
March 26, 2020 at 2:55 pm #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:

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,
March 29, 2020 at 3:25 pm #1198832Hey 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,
VictoriaMarch 29, 2020 at 6:04 pm #1198890Hey, 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
March 31, 2020 at 6:13 pm #1199401Hi Vangone,
You can try experimenting with it, but it might not be easy to come up with the value.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.
