Problem with bootstrap in angular #41374
-
Beta Was this translation helpful? Give feedback.
Answered by
julien-deramond
Apr 14, 2025
Replies: 1 comment 1 reply
-
|
If you want to use Another approach—depending on your use case—would be to customize the table styling using CSS variables:
#myTable {
--bs-table-striped-bg: var(--bs-warning-bg-subtle);
/* Do the same thing for the "normal" bg color, and for the text colors */
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
J4KU8Dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


If you want to use
.bg-classes, you'll need to apply them directly to each<td>or<th>, rather than to the<tr>.Alternatively, you can use
.text-bg-classes, which apply both background and corresponding text colors.Another approach—depending on your use case—would be to customize the table styling using CSS variables:
id(such asmyTable) orclassto your table.