Excuse my lack of knowledge on this subject, I am new to this and feeling a bit lost!
I have created a simple webpage () using Bootstrap 4 and now I want to customize the colors and design to match my brand. Most parts are working fine, but I'm having trouble with a button. I have successfully changed the text color of the button in its default state and hover state. However, I am struggling to change the background color in both states. Here is the CSS code I am using:
.btn-light {
background-color: #fcf8d7 !important;
background-image: none !important;
text-shadow: none;
color: #714c82;
}
.btn-light:hover{
background-color: #714c82;
background-image: none;);
color: #939393;
text-shadow: none;
}
In my HTML file, I have:
<a href="mailto:..." <button type="button" class="btn btn-light btn-lg"><i class="far fa-envelope"></i> Email Us</button></a>
Additionally, the code doesn't seem to change the text color when I use it in my online CSS file. It only works when added within <style> tags in my html file, even though it works fine offline in the CSS file.
I hope this all makes sense.
Does anyone know what could be causing these issues?