J
John F
I want to <u>underline in red</u> but leave
the original text color unchanged. This is for
"redlining" text that's been changed between drafts.
The best googling solution I found was of the form
<span style="display:inline; border-bottom:thin solid red;">
stuff to be underlined </span>
which has various and sundry problems, e.g.,
o if there's a <ul>...</ul> inside the span,
the border goes all the way across the window,
like an <hr>. I want it to just underline the text.
After playing around, I came up with the variant
nesting two spans
<span style="display:inline; text-decoration:underline; color:red;">
<span style="color:black;"> stuff to be underlined </span></span>
which seems to leave the underlining in red, but the text
becomes black. This works fine in all cases I tested, but
has (at least) two problems I haven't been able to solve:
o I don't really want "hard-coded" black. I want to inherit
the color from what it was originally, before the first span
(I don't want to inherit the red from the first span).
Black's a good default guess, but not always right.
Any way to inherit from "two levels up"?
o Accidentally using those two <span>'s with an incorrectly
balanced construction like
<span><span> <p>... </span></span> ...</p>
either (1) does no underlining at all in SeaMonkey,
or (2) underlines and keeps underlining beyond
both closing </span>'s and beyond the </p> in Konqueror.
People besides me will be using these redlining tags,
so I'd like them to behave/recover nicely as often as
possible.
Are there any solutions to these problems (for either the
"border" tags redlining procedure or the "decoration" tags
procedure)? Or is there some standard html procedure
for redlining changed text? Thanks,
the original text color unchanged. This is for
"redlining" text that's been changed between drafts.
The best googling solution I found was of the form
<span style="display:inline; border-bottom:thin solid red;">
stuff to be underlined </span>
which has various and sundry problems, e.g.,
o if there's a <ul>...</ul> inside the span,
the border goes all the way across the window,
like an <hr>. I want it to just underline the text.
After playing around, I came up with the variant
nesting two spans
<span style="display:inline; text-decoration:underline; color:red;">
<span style="color:black;"> stuff to be underlined </span></span>
which seems to leave the underlining in red, but the text
becomes black. This works fine in all cases I tested, but
has (at least) two problems I haven't been able to solve:
o I don't really want "hard-coded" black. I want to inherit
the color from what it was originally, before the first span
(I don't want to inherit the red from the first span).
Black's a good default guess, but not always right.
Any way to inherit from "two levels up"?
o Accidentally using those two <span>'s with an incorrectly
balanced construction like
<span><span> <p>... </span></span> ...</p>
either (1) does no underlining at all in SeaMonkey,
or (2) underlines and keeps underlining beyond
both closing </span>'s and beyond the </p> in Konqueror.
People besides me will be using these redlining tags,
so I'd like them to behave/recover nicely as often as
possible.
Are there any solutions to these problems (for either the
"border" tags redlining procedure or the "decoration" tags
procedure)? Or is there some standard html procedure
for redlining changed text? Thanks,