Vertical align text in button

Hi,

Can someone help me to align the text in my buttons vertically? I would like the text to be centered vertically in the buttons. Here you can find the example: https://pifotal.com/?page_id=201

Thanks a lot!
Iris 

Comments

  • Hello Iris,
    I removed all of your custom css code and it works fine, see the screen:

    It looks like one (or more) of your codes is making that problem, please find the css rule which is making that problem and get rid of it.

    thanks
  • Hi Pablo, 

    Thanks for your reply! I tried removing all the custom css code, but the text in the button is still aligned to the top of the button. 

    Do you know what i'm doing wrong?

    Kind regards,
    Iris

  • You inserted it somewhere else than Theme Options > Custom CSS & JS, because I removed whole CSS code which is not coming from BeTheme and it works.

    Did you (or previous developer) was modificating the theme files or added external css file?
    Thanks
  • Ahh okay, thanks, I found the one causing it:

    }
    .button span.button_label {
        font-size: 23px; 
    }

    The previous developer used this to increase the text size in the buttons. Is there a way to increase the text size in the buttons and align the text vertically?

    Thanks a lot!
  • Of course.
    If your theme is up to date, you can change the button color, size and much more (if you will select custom button) in our new feature named Button builder.
    Theme Options > Global > Buttons

    If you do not want to use it, then you have to increase the content font size, because the button inherits this parameter to their font size.
    Thanks
  • Awesome, this works, thanks a lot! 

    I have one more question, how can I now assign the style of the button to the buttons? I don't see any options for this in this screen: https://prnt.sc/u6okhw.

    Now, the buttons on the website don't change colour when I hover over them. 
  • It will be automatically changed, but if you want to have the same color as on the button builder, you have to clear the color field from the button settings. (for both colors)

  • Ahh perfect, thank you!!
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.