Home Forums Pro Themes Photo Perfect Pro Sticky Menu Center Align

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #182385
    soarts
    Participant

    Is there a way to center the sticky menu on desktop? (

    Currently, everything aligns to the left and looks a little odd with a big empty gap on the right.)

    #182387
    sanam
    Keymaster

    Hello @SOARTS, Please add this CSS in the Additional CSS

    @media only screen and (min-width: 767px){
    .sticky-menu-enabled #main-nav li {
    left: 328px;
    }
    }

    Go to Customizer >> Appearance >> Additional Css, paste the above CSS there, and published the site.
    You can adjust the numbers as per your need.

    Regards,
    Themepalace

    #182411
    soarts
    Participant

    It centered the Sticky Menu correctly, however, the submenu did not shift with it and are unclickable.

    #182417
    sanam
    Keymaster

    Hello @SOARTS, Please use this CSS instead.

    @media only screen and (min-width: 767px) {
    .sticky-menu-enabled #main-nav li {
    float: none;
    display: inline-block;
    }
    }

    • This reply was modified 1 year, 8 months ago by sanam.
    #182547
    soarts
    Participant

    That worked perfectly! Thank you!

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