I want to underline the final line of multi-line text, or at least create the allusion of it. Look closely at the following examples, because I'm trying to do something tricky.
A. Here's what I want to happen (the __
marks the where the text should be underlined):
A line of text that is long enough so that it wraps
to another line.
________________
B. Here's what I DON'T want:
A line of text that is long enough so that it wraps
___________________________________________________
to another line.
________________
C. Or this:
A line of text that is long enough so that it wraps
to another line.
___________________________________________________
This effect is for a CMS so I won't know the precise length of text. This means that manually inserting <span>
s or <u>
tags are not an option. I also don't want to user javascript. I'm well aware that the effect I want is not the default behavior and that this will require some tricky CSS/HTML magic. But I feel like it might be possible. If you can't think of a way to do it, please don't bother to submitting an answer. Everything is impossible until you figure out how to do it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…