How do I make an underscore to a set size?

Asked

Viewed 31 times

1

I tried to leave underlined with defined size using <font style=" text-decoration:underline 3px;>, but unfortunately it doesn’t work.

Can leave underscore set size with <font style="border-bottom:3px solid #000000;">, but there is a space between the underlining and the word.

I tried in CSS {display:inline-block; borderborder-bottom: 3px solid #000000;line-height: 25px;} and also traded "inline-block" for "block" and it worked only on the desktop. There’s no space between the underscore and the word. On the mobile phone, there is a huge line that goes far beyond the underlined word.

I tried only inline and I did not have this problem on mobile, but presents the problem of <font style="border-bottom:3px solid #000000;"> : space between the underlining and the word, as if the line-height were useless.

I tried to put values without being px in line-height, tried relative values: 0.85, 1 and 1.5, and still the same thing.

I’ve tried to change too line-height for border-spacing and margin-bottom and nothing either.

I don’t know what else to do. How do I resolve this issue?

  • 1

    Put an example to get an idea of what is being done. Take a snippet of your code to express your context.

  • You want to change the thickness of the underlining? I didn’t get it right

  • Yes, I want to increase the thickness, but I can not in the text-Decoration:underline. When I use other things to increase the thickness, there is space between the word and underscore. I just wanted to increase the thickness of the underscore, I don’t want space between the underscore and the word.

  • Thiago, I edited the question. Maybe, now you understand better.

  • If you want to increase the thickness (thickness) of the underlining, I find it interesting to clarify this in the question. Underlining size is very vague. Which [can] make[r] the duplicate question. The duplicate does not mention increasing the thickness of the default underscore. But, depending on how.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.