Site logo

[Support request] Float Navigation Logo Outside Container

Home Forums Support [Support request] Float Navigation Logo Outside Container

Home Forums Support Float Navigation Logo Outside Container

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1719621
    Joseph

    I apologize for reopening this topic. I tried the CSS on the documentation provided and also some CSS provided by you guys on a recent thread but still cannot get the Navigation Logo to float outside the container.

    I have attached the WIP web link for your review.

    I followed this link
    https://docs.generatepress.com/article/navigation-logo/

    #1720295
    Ying
    Staff
    Customer Support

    Hi Joseph,

    It’s because you are already using position: absolute; to center the logo.
    https://www.screencast.com/t/xpSJ5e6oSM
    You could remove the CSS in the green box, and add one line of CSS below to the red box (feel free to adjust the number):
    top: 30px;

    And you can set logo image size at
    Let me know 🙂

    #1720448
    Joseph

    Hi Ying, that did the trick on dropping the image outside the container as needed. I just can’t get the image size to 100px in height.
    Here is what I used:
    .main-navigation .site-logo.navigation-logo img {
    height: 100px!important;
    }

    #1720509
    Ying
    Staff
    Customer Support

    Let’s try this CSS instead:

    .navigation-branding img, .site-logo.mobile-header-logo img, .sticky-navigation-logo img {
        height: 100px !important;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.