[Resolved] Need some help with a little CSS please!

Home Forums Support [Resolved] Need some help with a little CSS please!

Home Forums Support Need some help with a little CSS please!

  • This topic has 3 replies, 2 voices, and was last updated 5 years ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #862942
    Henry

    OK, I am trying to implement a little bit of CSS to change the menu navigation button as recommended to do using this snippet > https://docs.generatepress.com/article/adding-buttons-navigation/

    My line-height (I think) is completely off and I can’t figure out what it should be – and – I think that it needs some margin or padding?

    If you see my URL you’ll see what I mean: (top right button called ‘Premium’) > http://pegasusxxi.wpengine.com/

    Thanks for all help!!

    Here is my CSS:

    @media (min-width:769px) {
        .main-navigation .main-nav ul li.premiumbutton a {
            /* background-color: #ffffff; */
            border: 2px solid #FFFFFF;
            color: #FFFFFF;
            line-height: 40px; /*this number will likely need to be adjusted*/
        }
    }
    #862948
    David
    Staff
    Customer Support

    Hi there,

    Add this property to the above CSS Rule:

    margin-top: 10px;

    To cover, your menu item line-height is 60px. Your button is 40px. The difference of 20px needs to be split – so by adding half of it to the top will push the button down 🙂

    #865504
    Henry

    Thanks David – worked great.

    #865529
    David
    Staff
    Customer Support

    You’re welcome

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