Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #743469

    Hello,

    In this thread we’ve figured out to make the center menu work. Im 90% happy with the result.
    https://kriesi.at/support/topic/center-menu-white-space-below/

    I’ve found an other downside; on a smaller screen the menu seems to brake.
    The right side of the menu falls underneath the left side of the menu.
    The menu doesn’t have this problem when the font size is smaller. (But I really dont want the size to be smaller.)

    I hope you guys can help me.

    • This topic was modified 7 years, 9 months ago by ernaborbas.
    #743537

    i do not see a link to the concerning site so in this point i can not help you in detail.

    But what behavior should a menu have if the space from left to right is not enough?
    To have the menu responsive there are two main solutions.
    The one is that some listpoints are floating underneath the others – the other one is to shrink font-size, margins or paddings between list points.

    #743639

    This is the website (in the first post i placed in in private content). http://nlboos-osterwaal.savviihq.com/

    As i said; I dont want to shrink the font-size. I’m searching for a other solution.

    #743683

    Edit: try first the other solution – seems to be clearer !

    so one possibility is to have a fluent nav height.
    if you don’t want to shrink font-size you have to allow floating (as you does) – but your container with navigation is set to 50px height.
    try this here instead:

    #header .container {
         max-width: 100%;
         padding: 0px;
    }
    
    #header_main_alternate {
         border: medium none ! important;
    }
    
    .html_header_top.html_header_sticky.html_large.html_bottom_nav_header #main {
        padding-top: 138px !important;
    }
    
    .html_header_top.html_logo_center .logo {
         filter: drop-shadow(2px 2px 3px #888888);
         left: 50%;
         transform: translate(-50%, 10px);
    }
    
    .html_header_top.html_logo_center .main_menu ul:first-child {
         display: inline-table ! important;
         width: auto ! important;
    }
    
    .html_header_top.html_bottom_nav_header .main_menu > div, .html_header_top.html_bottom_nav_header .main_menu ul:first-child {
         height: auto ! important;
         width: 100%;
    }
    
    @media only screen and (max-width: 1120px) {
    .html_header_top.html_header_sticky.html_large.html_bottom_nav_header #main {
        padding-top: 186px !important;
    }
    }

    on transformation the logo for me it looks nice to have the logo a bit shifted down. But it is a matter of opinion.
    the padding-top is for having the slider not covered by the navigation.

    • This reply was modified 7 years, 9 months ago by Guenni007.
    #743686

    the filter is to style the logo a bit.
    for me the thin line through your logo looks not good.

    Some rules exists allready and are only (transforming the logo) to setup a bit different

    PS : and now i’m hungry – looks very nice

    • This reply was modified 7 years, 9 months ago by Guenni007.
    #743736

    Hi,

    Thanks for helping out @guenni007. Did you try out the suggestions and did you have any luck with them @ernaborbas?

    Best regards,
    Rikard

    #743775

    and here is the alternative without floating some menu links under the others:
    Less place for the logo for more place for navigation

    Try this first – seems to be the better alternative

    
    .av-main-nav li:nth-child(3) {
        margin-right: 150px;
    }
    
    .responsive .main_menu ul:first-child > li > a {
        padding: 0 8px;
    }
    
    #header_main_alternate {
         border: medium none !important;
    }
    
    #header .container {
         max-width: 100%;
         padding: 0px;
    }
    
    .html_header_top.html_logo_center .logo {
         filter: drop-shadow(2px 2px 3px #888888);
         left: 50%;
         transform: translate(-50%, 20px);
    }
    
    .html_header_top.html_header_sticky.html_large.html_bottom_nav_header #main {
        padding-top: 120px !important;
    }
    
    .cart_dropdown {
        opacity: 0;
        right: 0;
        top: 0;
        transition: none !important;
    
    }
    
    @media only screen and (min-width: 980px) {
    .responsive .main_menu ul:first-child > li > a {
        padding: 0 20px;
    }
    }
    
    @media only screen and (max-width: 810px) {
      .container #advanced_menu_toggle, #advanced_menu_hide {
          display: block;
      }
    .main_menu .avia-menu, #header_main_alternate, .fallback_menu {
        display: none;
    }
    .responsive #top #wrap_all .container {
        float: none;
        margin: 0 auto;
        max-width: 85%;
        padding-left: 0;
        padding-right: 0;
        width: 85%;
    }
    .responsive.html_header_top.html_logo_center .logo {
        left: 0;
        margin: 0;
        transform: translate(0%, 0px);
    }
    .responsive #top .cart_dropdown {
        margin: -23px 50px 0 0;
        position: absolute;
        right: 7.5%;
        top: 50%;
        opacity: 1
    }
    • This reply was modified 7 years, 9 months ago by Guenni007.
    #743833

    Hi,

    Thanks for sharing your solution @guenni007

    I checked your site and the logo looks good in both desktop and mobile. Not sure if you got this sorted, let us know if you have any questions.

    Best regards,
    Vinay

    #743910

    if you shrink his site to responsive case you see the fact he liked to change.

    Look here to my solution2 for his site:

    https://webers-testseite.de/ikom/wp-content/uploads/screenfilm.mp4

    #743959

    Thank you @Guenni007, amazing piece of code.
    The code seems to work; partially.

    My site had the maximum container width of 80%. It looks like the maximun width is back at 1310px again.
    I really want it to be 80% wide.

    I MAY want to shrink the logo a little, what part of the code do I need to change to make that happen?

    Also i can’t seem to adjust the font-size anymore, of the main menu.
    The size is 14px right now, I want the size to be around 16px/18px.

    I like what you did with the shadow, underneath the logo; good job!!

    • This reply was modified 7 years, 9 months ago by ernaborbas.
    #743974

    First impression:
    You see the image and that the slider is under the Navigation. This is a wanted effect?

    if not now the value is :

    .html_header_top.html_header_sticky.html_large.html_bottom_nav_header #main {
        padding-top: 165px !important;
    }

    if you see my little video there was allways a padding left/right so there has to be some changings in the meanwhile from your site which causes this behavior.
    I will see what it is.

    #743981

    i see that this code was inserted after my last information:
    it is in media-querie und 810px – can you please remove it shortly
    i thought you like to have for body (#top.boxed) max-width: 1010px and width: 85%

    .container {
        width: 100%;
    }
    .container .av-content-small.units {
        width: 80%;
    }
    .responsive #top.boxed, .responsive.html_boxed.html_header_sticky #header, .responsive.html_boxed.html_header_transparency #header {
        max-width: 90%;
        width: 80%;
    }
    .responsive .container {
        max-width: 80%;
    }
    #top #header .av-main-nav > li > a {
        font-size: 15px;
    }

    after that we will see what happens

    #744715

    ok seems to be not so important, but you changed yourself the code
    so now i’m out from this topic. Your welcome

    #745314

    Hello @Guenni007,

    I had a short vacation, I can’t seem to figure out what I need to remove from the code I have on my website right now..
    The code i have working now is:

    .av-main-nav li:nth-child(3) {
        margin-right: 150px;
    }
    
    .responsive .main_menu ul:first-child > li > a {
        padding: 0 8px;
    }
    
    #header_main_alternate {
         border: medium none !important;
    }
    
    #header .container {
         max-width: 100%;
         padding: 0px;
    }
    
    .html_header_top.html_logo_center .logo {
         filter: drop-shadow(2px 2px 3px #888888);
         left: 50%;
         transform: translate(-50%, 20px);
    }
    
    .html_header_top.html_header_sticky.html_large.html_bottom_nav_header #main {
        padding-top: 165px !important;
    }
    
    .cart_dropdown {
        opacity: 0;
        right: 0;
        top: 0;
        transition: none !important;
    
    }
    
    @media only screen and (min-width: 980px) {
    .responsive .main_menu ul:first-child > li > a {
        padding: 0 20px;
    }
    }
    
    @media only screen and (max-width: 810px) {
      .container #advanced_menu_toggle, #advanced_menu_hide {
          display: block;
      }
    .main_menu .avia-menu, #header_main_alternate, .fallback_menu {
        display: none;
    }
    .responsive #top #wrap_all .container {
        float: none;
        margin: 0 auto;
        max-width: 85%;
        padding-left: 0;
        padding-right: 0;
        width: 85%;
    }
    .responsive.html_header_top.html_logo_center .logo {
        left: 0;
        margin: 0;
        transform: translate(0%, 0px);
    }
    .responsive #top .cart_dropdown {
        margin: -23px 50px 0 0;
        position: absolute;
        right: 7.5%;
        top: 50%;
        opacity: 1
    }

    Can you help me with completing the piece of code with your new code?

    You’re very helpfull allready, thanks for that!

    #745316

    well ok. –
    i can see underneath my code above that there are additions in the quick css media querrie und 810px – namely:

    .container {
        width: 100%;
    }
    .container .av-content-small.units {
        width: 80%;
    }
    .responsive #top.boxed, .responsive.html_boxed.html_header_sticky #header, .responsive.html_boxed.html_header_transparency #header {
        max-width: 90%;
        width: 80%;
    }
    .responsive .container {
        max-width: 80%;
    }
    #top #header .av-main-nav > li > a {
        font-size: 15px;
    }

    can you please remove that first – because the code which is necessary is “fighting” against that.

    #745319

    you lost something (the max-width of body):

    #top.boxed, .html_boxed.html_header_sticky #header {
        max-width: 85%;
        width: 1010px;
    }

    the rules above are conflicting and confusing that rule

    #745323

    I now only added this code, what should I add next??

    .container {
        width: 100%;
    }
    .container .av-content-small.units {
        width: 80%;
    }
    .responsive #top.boxed, .responsive.html_boxed.html_header_sticky #header, .responsive.html_boxed.html_header_transparency #header {
        max-width: 90%;
        width: 80%;
    }
    .responsive .container {
        max-width: 80%;
    }
    #top #header .av-main-nav > li > a {
        font-size: 15px;
    }

    As you can see, the width of the page is perfect now.
    (http://nlboos-osterwaal.savviihq.com)
    That is the width i would like to have.

    Now I need the menu to be: Link – Link – Link – Logo – Link – Link – Link & The responsive part that you designed.

    Thanks

    • This reply was modified 7 years, 9 months ago by ernaborbas.
    #745344

    is my english too bad or do you like to misunderstand me –
    this is the code you should add: https://kriesi.at/support/topic/center-menu-responsive/#post-743775

    and this is the code you have to remove – https://kriesi.at/support/topic/center-menu-responsive/#post-745323
    because it is not the code you need. If you have removed it i will see what code will do the job

    #745348

    @guenni007 I’m just very confused about it all, can I maybe send you login details so you can change the piecie of code for me? It would help ALOT ..

    Because I can’t seem to find where in the website I have to delete this pieces of code – https://kriesi.at/support/topic/center-menu-responsive/#post-745323

    If u agree, i will send the details to: (Email address hidden if logged out)

    Thanks.

    • This reply was modified 7 years, 9 months ago by ernaborbas.
    #745390

    you can do that or you can wait till mods are here in this thread.

    #745409

    I just sent you the details, hope you can help me.

    Otherwise I hope the mods can help me with:
    – Centering menu (logo in middle)
    – Links may not fall underneath other menu links
    – Keeping it sort of responsive

    This code is great allready: https://kriesi.at/support/topic/center-menu-responsive/#post-743775
    Only downside to that is that my page isn’t 80% wide anymore.

    Thanks!

    • This reply was modified 7 years, 9 months ago by ernaborbas.
    #745416

    ok – have a look and see if i understood your request in the right way.

    btw: i added some code to your functions.php of your child theme –
    this is why your quick css input window is now at 100% width and responsive

    By the way – please do update to WP 4.72 soon -because there are a lot of sites hacked (hacked by sa3d hack3d) including two of my sites.
    it is a security problem of WP 4.71 only and goes to posts (not pages nor portfolio posts) see google

    • This reply was modified 7 years, 9 months ago by Guenni007.
    #745421

    I will update soon, thanks for telling me that!

    About the website; the menu is still great, it’s still responsive as the screen gets smaller.

    I saw you added this code:

    #top.boxed, .html_boxed.html_header_sticky #header {
        max-width: 85% !important;
        width: 1010px;
    }

    I changed that code to:

    #top.boxed, .html_boxed.html_header_sticky #header {
        max-width: 85% !important;
        width: 80%;
    }

    And now it works axactly like how I want it to be.

    Amazing @quenni007, I’ll keep you in the credits of the website.

    EDIT: I now see that both codes underneath dont work anymore; why is that .. ?

    /* Content slider */
    .contentsliderlettertyp {
    font-size: 14px;
    text-align: center;
    }
    
    /* Witte special header met schaduw */
    .dropshadow .av-special-heading-tag {
    text-shadow: 2px 1px 2px black !important;
    color: #ffffff;
    }
    • This reply was modified 7 years, 9 months ago by ernaborbas.
    #745494

    this is because it is in media querie rule:

    the ending curly bracket is now missing there – where do you want to end this rule. You have to put in a }

    Edit : i put in the bracket – now you can erase me as user

    that is the reason why i do not have those media queries in the middle of the css. i put it alway on the bottom to it:

    @media only screen and (max-width: 810px) {
    this last closing bracket was not there
    }
    #745501

    @Guenni007 you are beyond amazing.
    Thanks for your help!!

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