simon5968 Posted December 2, 2023 Posted December 2, 2023 Hi, I am doing some template changes and need some help on CSS classes as follows: i have 12 buttons I've added the same class to each with say .firstclass to get them all the same, next is the part I need help on is each buttion has a <h2> header and I need to put a Icon before the header? so in the CSS i have under .firstclass { margin-top:30px; margin-bottom:30px; } how do I add the Icon: this maybe { margin-top:30px; margin-bottom:30px; } h2:before { } or .firstclass h2:before Quote
simon5968 Posted December 2, 2023 Author Posted December 2, 2023 this is my button: <a class="btn btn-lg btn-success" href="#"><h3>Your Orders</h3><br>Track, return, cancel and order, download invoice or buy again</a> the html widget has the class name of .firstclass Quote
iwanttogoas Posted April 12, 2024 Posted April 12, 2024 Hi, probably just a typo but the text is in a H3 not a H2, also if it was possibly I would just put a unique class on the H2/3 and set the before on that. Thanks Steve Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.