0

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?

RCWZX
  • 53
  • 8
  • *The term "sibling" refers to a kind of relationship between two items in a tree structure. Two items have the sibling relationship if they both have the same parent.* – Temani Afif Sep 30 '22 at 11:09

0 Answers0