I have my html like this:
<div class="instructions">
<h2>Heading</h2>
<p><span>Step 1: </span>This is step 1</p>
<p><span>Step 2: </span>This is step 2</p>
<p><span>Step 3: </span>This is step 3</p>
<p><span>Step 4: </span>This is step 4<p>
</div>
What I want to achieve is apply text-decoration: underline;
on my text inside p but not on span
.
I have tried using :not()
selector and applying inheritance but not able to get the expected results.