CSS text-decoration hierarchy -
this question has answer here:
apologies if duplicate, i'm enough of css neophyte don't know search for.
i'm trying modify text-decoration within block adding span
, , it's not working. how come? can add new text-decoration within span
, can't subtract old one.
<h1 class="strikethrough"> stricken<span class="no-strikethrough"> no strike</span> </h1>
is there way can achieve goal? i'd inherit properties of h1
except text-decoration, i'd prefer have "no strike" text inside tag.
i think trying keep first part atrile , second part without strike.
so this
<h1> <span class="strikethrough">stricken</span> no strike </h1>
and 1 more thing. using hyphens in class name fine , dandy if youre in css when move javascript cause problems (as far knowlege goes). practice way
Comments
Post a Comment