Hey folks
As per the title – I want to apply an underline effect to the H2s BUT just to the text rather than the entire block.
This is the code I’m using currently. I’m not sure what to replace the width 100% with?
appreciate your help, thanks!
ETA: I’m using border rather than text decoration as I want that curved/swoosh effect
`h2{
position: relative;
margin-right: 1rem;}
h2:after {
content: “”;
position: absolute;
bottom: -10px;
left: 0;
height: 7px;
width: 100%;
border: solid 3px #D7CB83;
border-color: #D7CB83 transparent transparent transparent;
border-radius: 30%;
}