I use css so that the underscore falls within the range:
CSS
.un{
text-decoration:none;
transition: all .5s ease-in;
}
.un:hover{
text-decoration:underline;
}
HTML:
<span class="un"> Underlined Text - Or to be underlined </span>
The underlined text simply appears; it does not move for more than 0.5 seconds, such as transition. Why not? How can I do this job?
source
share