I'm facing a challenge with a media query to decrease the font size of a text. It seems like a straightforward task, yet I can't pinpoint the issue.
HTML:
<div class="fp-featured">
<div class="fp-title">TITLE</div>
<p class="text1 inline-edit-editable">Text 1 here<br />
<span class="text2" style="font-size: 56pt;">Text 2 here!</span></p>
</div>
CSS:
@media only screen and (max-width: 600px) {
.fp-featured > span {
font-size: 12pt;
}
}
Attempted targeting just the span class as well
@media only screen and (max-width: 600px) {
.text2 {
font-size: 12pt;
}
}
Despite resizing the window, the text size remains unchanged. I'm uncertain whether the class declarations are incorrect or if there's an issue with the order, but I'm struggling to achieve the desired text reduction.