Tagged: CSS, custom.css
Hey guys, I’m trying to add a custom css class to xtra-large buttons that are on my homepage and for some reason it is not working.
I have tried inputting the css in both the Quick CSS, and the child theme’s stylesheet, but neither seem to work.
I’ve tried both of the following, but to no avail (“hp-btn” is the custom css class):
.avia-button.avia-size-x-large .hp-btn {
width: 100% !important;
}
.avia-button.avia-size-x-large.hp-btn {
width: 100% !important;
}
Hi Jamie!
I can see your class added to the wrapper div:
avia-button-wrap avia-button-center avia-builder-el-3 avia-builder-el-no-sibling hp-btn
Are you trying to get the button to span 100% of the site width?
Regards,
Rikard
Thanks Rikard. I am trying to get the button to span 100% of the 1/2 layout element.
Hi!
Please try the following in Quick CSS under Enfold–>General Styling:
.hp-btn .avia-button {
min-width: 100% !important;
}
Regards,
Rikard
Perfect, that seemed to work! Thanks Rikard, very much appreciated.