Archived topic
Align button center within column
5 replies · Started by Jacob on April 15, 2020
Hi!
I tried to add a button-within a grid/column that appears to come custom with your theme (or perhaps Wordpress core.)
The button adds fine, however i'm having trouble targeting the CSS class I created with your "Advanced" option for the button. For example, when I look at it with Chrome inspector I cannot find the newly added CSS class. Either that or i'm having some kind of over-rid issue.
.upgradeButtonTw {
text-align: center;
}
Thanks for the help!
Hi there,
Try this CSS:
.wp-block-column .wp-block-buttons {
text-align: center;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps :)
great thanks! Worked like a charm!
No problem :)
This code works for me. But, as soon as I add a link, it won't center anymore. Any ideas?
Hi Kristy,
As this is solved for the topic starter, can you open up a new topic?
Opening a new topic lets you use the private information text field to provide your site details. We may need it to get a closer inspection of your site to find out why that's happening. Thank you.