Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1494177

    Hi,

    I would like create a floating header like this:
    https://base44.com

    I try to create it I don´t know what is the best idea to create it. Start with a transparent header and add the white banner or star with the regular header. Could you help me?
    Thanks advance!

    BR,

    Antonio.

    #1494276

    Hey Antonio,
    Thanks for your patience, try this css:

    .header_color .header_bg {
    	background-color: transparent;
    }
    .html_header_top.html_header_sticky #top #wrap_all #main {
        padding-top: 0;
    }
    .av-logo-container .inner-container {
    	  border: 1px solid #e6e6e6;
        border-radius: 100px;
        box-sizing: border-box;
        background-color: #fff;
        margin-top: 20px;
    }
    .logo.avia-standard-logo {
    	padding-left: 20px;
    }
    .template-page.content {
    	padding-top: 150px;
    }

    This is how it should look:
    f6WsvrQ.png

    Best regards,
    Mike

    #1494295

    Hi Mike,

    Great! The issue is there are a white space at the top.
    I have add this code:
    .html_header_top.html_header_sticky #top #wrap_all #main {
    padding-top: 0px !important;
    }
    But the content are now bellow the header.

    Could yo help me to create the same header in mobile size?

    Many thanks,

    BR,

    Antonio.

    #1494353

    Hi,

    Thank you for the update.

    Try to add this css code to push the content further below the header.

    .html_header_top.html_header_sticky #top #wrap_all #main .template-page.content {
        padding-top: 150px;
    }

    Let us know the result.

    Best regards,
    Ismael

    #1494362

    Hi Ismael,

    Great, could you help me to do the same floating header in mobile?
    Thanks advance,

    BR,

    Antonio.

    #1494405

    Hi,

    Thank you for the update.

    You can start with this css code to make the header sticky on mobile view.

    @media only screen and (max-width: 767px) {
    
      /* Add your Mobile Styles here */
      .responsive #top #wrap_all #header {
        position: fixed;
      }
    
      .responsive #top .av-logo-container .inner-container {
        padding: 0 20px;
      }
    
      .responsive #top #wrap_all .main_menu {
        top: 0;
        height: 80px;
        right: 25px;
      }
    }

    fiMOQX2.md.png

    Best regards,
    Ismael

    #1494423

    Hi Ismael,

    Works perfect, many thanks.

    BR,

    Antonio.

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