I want to apply CSS to the ul li elements following a div section. Using CSS selectors, how to I select the li elements that follow a specific div? I thought it would be this but it does not work
div span.survey_one ~ div ul li{
list-style-type:none;
font-size:1.2rem;
}
Here is the HTML:
<div><span class="survey_one">dddddddddddddd</span>
<br>
</div>
<div>
<ul>
<li>a</li>
<li>b</li>
<li>c</li>
<li>d</li>
</ul>
</div>