I have no idea why isn't a code like this working, as far as I understand the General Sibling Selector, it should select all p elements in the footer in my case. However, when I try to change the font size with it, it doesn't do anything. When I change the selector to just >, it works. Why is it so? Suppose I have a footer like this:
<footer class="footer">
<p>Footer</p>
</footer>
and a line in CSS file like this:
footer ~ p{
font-size: 100pt;
}
Can I make the general sibling selector work here somehow?