I often use tags for buttons, so they have padding that makes them such buttons.
How to change the thickness of the underline of the text? People often recommend using border-bottom for this, but
- The lower border is something other than an underline, some letters even go under the underline. The underline is much more complicated than the line below.
- I already use the padding of the items in question as described.
I tried using a:hover:after selector to actually have border-bottom. Css doesn't seem to give me many alternatives like text-decoration-underline-height or something like that.
Then I will somehow change the height of this pseudo-element to emulate the underline, without having a single centimeter from the text to the underline.
This is not like: after creating a pseudo-tag using this css selector. Some managed to do this, but I do not. Thus, there is nothing to create a hated border bottom.
How do I proceed? Will the correct text-decoration: underline styling style be added in css?
As long as how to emphasize the text using the string of the desired thickness?
source share