I’d like to have all of my buttons be the same height, with the text (sometimes 1 line, sometimes 2) centred vertically. I’ve tried
.avia-button {
min-height: 120px !important;
}
but that isn’t giving the result I’m looking for (all text aligned at the top across the buttons, rather than centred in the button).
I’ve also tried
.avia_iconbox_title {
position: relative;
top: 50%;
transform: translateY(-50%);
}
without any luck.
Suggestions?
Hey!
The first code is meant to affect a button and the second one an iconbox title, i’m not following you. Can you please post a screenshot/mockup of what would you want to achieve? a link to your website will be helpful too.
Best regards,
Josue
I’m trying to get the buttons to all have the same height, and have the text centred vertically in the button. How can I add screenshots? I’m not able to share a link as the site is an intranet behind a security firewall.
Right now buttons look like this (text length determines button height):
https://www.dropbox.com/s/hnf8nhzeienmjhb/buttons_1.jpg?dl=0
But I’d like them to all be the same height (looks much more consistent), like this:
https://www.dropbox.com/s/6b21e209dk2pzgu/buttons_2.jpg?dl=0
Hey!
1. Add this line to theme / child theme functions.php:
add_theme_support('avia_template_builder_custom_css');
2. Set the class of “one-line” to the one line buttons.
3. Add this to Quick CSS:
.one-line .avia-button{
line-height: 30px;
}
Cheers!
Josue
Thanks, Josue. Had to play around with the line-height to get it just right, but this did the trick! Thanks!