I have implemented a media query specifying the pixel value at which I want to apply a specific font size to all direct child elements (paragraphs) of the div. Within these paragraphs, there is one with the class=fs-5.
However, when viewing it responsively, the paragraph with that particular class remains unchanged.
Is there a way for me to override this?
.foots {
background-color: #0000e4;
top: -40px;
right: 100px;
height: 300px;
}
@media screen and (max-width: 950px) {
.foots>p {
font-size: 10px;
height: 40px;
}
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e3818c8c979097918293a3d6cdd3cdd1">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<div class="row position-relative">
<div class="col-3 position-absolute foots text-white text-center p-3">
<p class="fs-5">Other Lorem Stuff</p>
<p> >Lorem ipsum dolor sit amet</p>
<p> >Consectetur adipiscing elit</p>
<p> >Aenean laoreet lectus nec risus malesuada auctor.</p>
<p> >Vestibulum pellentesque</p>
</div>
</div>