The issue arises when I include the Boostrap CDN link, resulting in a change in font size.
I discovered that Bootstrap has a default font size, which is why attempts to adjust it using an external style sheet with !important
do not succeed. Interestingly, changing the font size works only when done within an inline style sheet.
div.banner {
font-size: 500% !important;
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="680a07071c1b1c1a0918285d465a">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e0828f8f949394928190a0d5ced2ced2">[email protected]</a>/dist/js/bootstrap.bundle.min.js"></script>
<main>
<div class="banner">
<h1 class="slideUp" style="font-family: 'EB Garamond', serif">
Yasuní National Park<br />
<span style="font-size: 40%"> between oil exploitation and conservation</span>
</h1>
</div>
</main>
This section of my code attempts to modify the font size of the <h1>
tag by using the following CSS rule. However, despite specifying it as important, the change does not take effect. Can you help me understand why?
div.banner {
font-size: 500% !important;
}