Imagine having this HTML structure,
<div id="banner-message">
<p>Hello World</p>
<button>Hover to change color</button>
</div>
My goal is to target the p
element from the button
. Why is the following CSS not working?
#banner-message {
button {
& + p {
color: red;
}
}
}