space between text and underline [duplicate]
Pergunta
This question already has an answer here:
i am using text-decoration:underline;
but text and underline are touching each other.can i increase space between text and underline?
Solução
Either use a different font or use a border-bottom
instead so that you can control the space with padding-bottom
.
Outras dicas
I had same issue then i used :
.underline_text {
border-bottom: solid 2px #000000;
display: inline;
padding-bottom: 3px;
}
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow