I've been struggling with customizing the colors of a bootstrap card header in my application. Here's what I have so far: https://i.sstatic.net/Lv1jk.png
Currently, the code I'm using looks like this:
<div class="card">
<div class="card-header card-header-warning">
<h4 class="card-title">Blah blah</h4>
</div>
<div class="card-body">
</div>
</div>
But instead of sticking to the predefined bootstrap colors (like primary, warning, success...), I want to use custom colors such as cyan or bordeaux (in RGB or HEX format, not from bootstrap).
Any suggestions on how I can achieve this? I tried adding an ID to the div like this:
<div class="card-header card-header-warning" id="card-header-color">
In my CSS file, I added the following:
#card-header-color {
background-color: cyan;
}
Unfortunately, this didn't change anything for me. I also tried removing the "card-header-warning" part, but then all styling disappeared too (refer to the image). I just need a way to alter the color without losing the existing header styles. https://i.sstatic.net/LgKxc.png
Your help would be greatly appreciated!