Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #984113

    Dear support,

    i would like to stretch the Top-Logo-Image-width to 100%. Is this possible? That it adapts to the browser-window width.
    Thanks for any help

    #984155

    Hi,

    I added following code to bottom of Quick CSS field

    .container.av-logo-container {
        margin: 0 !important;
        width: 100%!important;
        max-width: 100% !important;
    }
    
    div .logo img, div .logo {
        width: 100%;
    }

    Please delete your custom CSS code and it should work fine

    .logo {
        margin-left: -47px;
        margin-right: -47px;
    }

    Best regards,
    Yigit

    #984171

    Thanks Yigit,
    would it be also possible to scale the image 100% and keep the aspect ratio?

    #984447

    Hi,

    Adjust the code a bit.

    @media only screen and (min-width: 768px) {
    .container.av-logo-container {
        margin: 0 !important;
        width: 100%!important;
        max-width: 100% !important;
    }
    
    div .logo img, div .logo {
        width: 100%;
        height: auto;
    }
    
    #header_main {
        border-bottom-width: 1px;
        border-bottom-style: solid;
        z-index: 1;
        min-height: 203px;
    }
    
    .html_header_top.html_header_sticky #top #wrap_all #main {
        padding-top: 202px;
    }
    }

    You may need to add a few css modifications for mobile view.

    Best regards,
    Ismael

    #984609

    Hi Ismael,
    thank you for that. One more question: Is there a way to set a max-width in pixels. So that the logo-image doesn´t scale over 1500px?

    #984765

    Hi dondela,

    Do you mean like this?

    
    div .logo img, div .logo {
        width: 100%;
        height: auto;
       max-width: 1500px;
    }
    

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

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