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

    Hi,

    I added the following code into Quick CSS:

    .responsive #top .logo img {
    margin: auto;
    vertical-align: centered;
    }
    .responsive #top .logo {
    width: 100%!important;
    height: 100%!important;
    }

    On mobile the logo sticks on the top and is not vertically centered. Any ideas?

    Thanks and best regards,
    Realit Treuhand AG

    #691498

    I forgot to mention that the header custom heigt is 72px and the logo dimensions are 250x52px

    #692300

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    .responsive #top .logo img {
        top: 10px;
    }
    

    Best regards,
    Yigit

    #697204

    Thanks Yigit. We tried this before. This makes it fine on mobile but on PC the logo is not centered anymore (no padding between logo and slider).

    Is it possible to only change it for mobile view?

    Best regards,
    Michel & Aline

    #697241

    Hi!

    Yes, please change the code to following one

    @media only screen and (max-width: 768px) {
    .responsive #top .logo img {
        top: 10px;
    }}

    Best regards,
    Yigit

    #697249

    Perfect. Thanks Yigit.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Logo vertical centered not responsive’ is closed to new replies.