On Tue, 09 Sep 2003 04:48:23 GMT, Brian wrote:
Quote:
Has anybody a suggestion how I can get a dotted underline that is at
about the same position as the text-decoration:underline?
Have you tried setting line-height and vertical-align? |
- I need the font inside the underlined part at the same height as
outside of it, which means IMO that I need to keep the default
baseline alignment. Didn't try anything, because I don't know what I
would want to try here.
- The line height doesn't do anything to the position of the border.
AFAIK, the border of an inline element gets determined by the font and
not the defined line height. I verified this one, and it is as I
thought it was.
It seems another way to put the question is:
- Is there a way to further customize the text-decoration:underline?
- Is there a way to control the size of an inline box? (And no, that's
not the line-height.)
I just thought of a different solution: a background image that
provides the dotted underline. But I don't quite know how to position
it so that the dotted line is always just below the baseline, with the
potentially different heights of the fonts.