CSS text-decoration hierarchy -


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> 

http://jsfiddle.net/zv3ga/2/

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

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -