![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What I want: p style="text-decoration: line-through" Stricken span style="text-decoration: none">not stricken</span /p , where "Stricken " should be the only thing that is lined through. According to CSS2.1, this does not work (and all browsers I tested draw a line through the complete text of <p>). How do I override the text-decoration value on the paragraph with a different value (='none') partially in the flow content, here: the span> element? |
#3
| |||
| |||
|
|
What I want: p style="text-decoration: line-through" Stricken span style="text-decoration: none">not stricken</span /p , where "Stricken " should be the only thing that is lined through. [...] Seems to me that what you really want is to mark some text as deleted, why not use the correct markup for that at first? and then go on to style that part as you want it to show up as deleted text. p><del class="deleted-text">Stricken</del not stricken</p .deleted-text { visibility:visible; /* for safety against UA stylesheets */ display:inline; /* may not be needed, but for safety still */ text-decoration:line-through; } |
![]() |
| Thread Tools | |
| Display Modes | |
| |