I've been attempting to alter the colors of the column names, but they remain white. Here's an example:
<div class="table-responsive">
<button id="exportButton" class="btn btn-primary">Button</button>
<table class="table table-bordered table-hover custom-table">
<thead class="thead-light">
<tr>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
</tr>
I added: custom-table and then applied a style:
.custom-table {
background-color: rgb(249, 159, 25);
}
The color isn't being applied. Any ideas why?
Have tried various alternatives without success
EDIT #1: This is my complete code, please check it out:
<div class="tab-pane fade" id="TAB2" role="tabpanel">
<div class="table-responsive">
<button id="exportButton" class="btn btn-primary">bUTTON</button>
<table class="table table-bordered table-hover custom-table">
<thead class="thead-light">
<tr>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
<th class="text-truncate">#1</th>
</tr>
</thead>
<tbody>
{% for dato in datos_#1 %}
<tr>
<td>{{ dato.#1 }}</td>
<td>{{ dato.#1}}</td>
<td class="text-truncate">{{ dato.#1}}</td>
<td>{{ dato.#1}}</td>
<td>{{ dato.#1}}</td>
<td class="text-truncate">{{ dato.#1}}</td>
<td>{{ dato.#1}}</td>
<td class="text-truncate"><a href="{{ dato.#1}}" target="_blank">ME</a></td>
<td class="text-truncate">{{ dato.#1}}</td>
<td>{{ dato.#1}}</td>
<td class="text-truncate"><a href="{{ dato.#1}}"
target="_blank">mE</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
Can't figure out why it's not working properly :/