tags:

views:

252

answers:

2

Using css, when text has 'text-decoration:underline;' applied, is it possible to increase the distance between the text and the underline?

+4  A: 

No, but you could go with something like border-bottom: 1px solid #000 and padding-bottom: 3px.

edit: if you want the same color of the "underline" (which in my expample is a border), you just leave out the color declaration, i.e. border-bottom-width: 1px and border-bottom-style: solid.

chelmertz
A: 

This is not exactly what you were asking for, but it was an interesting read on the subject:

CSS Design: Custom Underlines

Peter Rowell