New Landing How can we help? Themeforest Theme Support Dante div row doesn't resize when sticky header is enabled

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Dante
  • #183881
    solidsn2004
    Member
    Post count: 208

    Hi,

    I have added a logo on a website I am working and set it to 100px height. I want to achieve 2 things.

    1. I want the nav menu and the 100px logo to appear in the same line. (I think the menu is now aligned on top with 50px padding to the right).

    2. When I scroll down (sticky header enabled) I set the height to resize to 40px but it seems like the div row doesn’t resize but stays the same height of 100px.

    Thanks and looking forward to your reply.

    #183902
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    .is-sticky > .sticky-header-resized{
    height:60px !important;
    }
    
    :not(.is-sticky) .header-right{
    margin-top:30px !important;
    }
    

    Thanks
    Mohammad

    #183903
    solidsn2004
    Member
    Post count: 208

    Thanks for the code Mohammad.This fixed the scrolling resizing.
    How about the the nav menu? How can I align it in the middle?

    I could use this code:

    nav#main-navigation.mega-menu.clearfix{
    padding-top:30px;
    }

    But I am not sure this is the correct way. Isn’t there an option to align it without setting a random value (in my case 30px seems right but it was a guess)?

    #183916
    Nishant – SUPPORT
    Spectator
    Post count: 649

    Hi,

    Use this custom CSS

    nav#main-navigation .menu > li {
      margin: 30px 0;
      padding-bottom: 0px;
    }
    
    .header-6 .search-nav {
    top:30px;
    }
    #183918
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I updated the code in my last reply so you need to use full code of my last reply.
    Thanks
    Mohammad

    #183920
    solidsn2004
    Member
    Post count: 208

    Thanks Mohammad but I am still having an issue 🙂

    Now, when I scroll down the nav menu stays centred and the div row doesn’t become smaller but stays the same.

    #183922
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please attach marked screenshot.
    Thanks
    Mohammad

    #183925
    solidsn2004
    Member
    Post count: 208

    As you can see from screenshot when I scroll down the row keeps the original height and doesn’t resize to smaller one.

    Attachments:
    You must be logged in to view attached files.
    #183932
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please check it now.
    Thanks
    Mohammad

    #183945
    solidsn2004
    Member
    Post count: 208

    Thanks a lot Mohammad!

    Now it works as I wanted.

    #183948
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks
    Mohammad

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register