Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #986024

    Hey everybody,

    I’m working with a logo that’s only 80px x 45px and an icon style main menu.

    While the icon for the menu is centered vertically in the header (slim), the logo is not. Is there a way to have this logo vertically centered, just like the icon for the main menu.

    I found a few posts and tried some of the code, but it seems that it’s individual to each individual site.

    Many thanks for looking into that.

    #986145

    Hey MadRhino,

    Can you give us a link to your site? so we can take a closer look.

    Best regards,
    Nikko

    #986285
    This reply has been marked as private.
    #986414

    Hi Karl,

    Thanks for that. Please try this in Quick CSS:

    span.logo {
        margin-top: 30px;
    }

    Best regards,
    Rikard

    #986586

    Thanks Rikard, I very much appreciate you taking the time to look into.

    The code you provide, just like some that are provided in connection with other requests on the same subject, does add a 30px margin above the logo, it doesn’t quite center it though. This is much more evident, if you start on the homepage (with a transparent header) and start scrolling downwards. As the header turns white, you can see that the menu icon is perfectly centered vertically, whereas the logo is not.

    Call me a stickler for detail, but is there another way to go about this?

    Again, many thanks for your time and help.

    #986980

    Hi MadRhino,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    #top #wrap_all .header_color.av_header_transparency span.logo {
        margin-top: 30px;
    }
    .html_header_top.html_header_sticky #header span.logo {
        margin-top: 20px;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #988345

    Thanks a lot Victoria, this works on the menu bar, but, if you start on a page with a transparent background, for instance on the home page, and you scroll down, the logo jumps upward, as it transitions from being displayed on a transparent background to the white background on the menu header. Isn’t there a way to center it vertically no matter where. Maybe it would help defining a fixed custom height for the menu header?

    Many thanks again, for looking into this.

    #988628

    Hi MadRhino,

    Can you try to replace 30px to 20px to this code:

    #top #wrap_all .header_color.av_header_transparency span.logo {
        margin-top: 30px;
    }

    Hope this helps.

    Best regards,
    Nikko

    #988641

    Perfect!

    Many thanks, Nikko.

    #988814

    Hi MadRhino,

    Glad we could help :)

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

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