for example:
<div class="demo">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
now I want to set the font size of the two adjacent elements when the div mouse under demo rolls. How do I write this code?
for example:
<div class="demo">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
now I want to set the font size of the two adjacent elements when the div mouse under demo rolls. How do I write this code?
prev-sibling cannot be achieved by relying solely on css at this stage
next-sibling can still be done
.demo > div:hover + div {font-size: 2em;}