It's quite a puzzle to figure out when I can and cannot override Bootstrap classes or IDs with custom CSS.
For instance, it seems easy enough to change the default navbar-dark background and font style, but altering the font color and size proves to be more challenging without resorting to inline styles or an external CSS file linked to an ID.
Here's what doesn't work:
<nav class="navbar navbar-dark"style="background: red; color:
yellow; font-family: cursive font-size: 50px;">
<a href="" class="navbar-brand" style="color: yellow; font-size:
50px;">PATTERN</a>
</nav
However, applying style directly to elements does work, like so:
<nav class="navbar navbar-dark"style="background: red; font-family:
cursive;">
<a href="" class="navbar-brand" style="color: yellow; font-size:
50px;">PATTERN</a>
</nav
The reliance on using IDs within each element becomes problematic when dealing with a large navbar that requires a uniform class to be applied.
How can I better understand these limitations and customize effectively?
Thanks! :)