O
O
Oleg2013-03-03 04:08:39
css
Oleg, 2013-03-03 04:08:39

How to remove underline from font callouts using css or javascript?

tgBHnFc.png
The usual underline works as in the first example, you need to achieve the effect shown in the second. Is it possible to implement this with standard css features or do I need to resort to js? If so, how?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
Battletoads, 2013-03-03
@Battletoads

Why extra div? After all, there are before and after
jsfiddle.net/Ry6cp/7/

S
Stalker_RED, 2013-03-03
@Stalker_RED

The very first thing that came to mind: http://jsfiddle.net/Ry6cp/
White stroke around the text, and the line below it, in the background.
A crutch of course, but until text-stroke is supported by browsers, I don't know a better solution.
ZY, the line can be implemented in other ways, depending on the specific task.

S
Shultc, 2013-03-03
@Shultc

The only thing that comes to my mind is the possibility of writing your own font, to which all letters will be immediately underlined the way you need.
Of course, in this case there will be problems: for example, you will not be able to change the color with which you underline.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question