Re: underline in a different color



John F wrote:

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.

Wouldn't <del>...</del> be the proper code for marking text that has
changed?

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.

You can't place a block-level element inside an inline element. That
would not validate.

o Accidentally using those two <span>'s with an incorrectly
balanced construction like
<span><span> <p>... </span></span> ...</p>

Same as above: no block inside an inline.

.. Or is there some standard html procedure
for redlining changed text? Thanks,

Here is how I would do it:

del { color: red; }

<p>Someone wants to <del>mark this text</del> in red, as "changed
text."</p>

--
-bts
-Friends don't let friends drive Vista
.