{
text-decoration: underline;
text-underline-offset: 2px;
}
Here, text-underline-offset: 2px; is used to define the distance of the underline from the text, where "2px" is the distance.
Note: text-underline-offset: 2px; can only be used after
text-decoration: underline;
You can also change the thickness of underline by writing
text-decoration: underline 5px;
where "5px" is the thickness.
Code Example |
---|
Css :: blur css |
Css :: css select without class |
Css :: hr tag customize using css |
Css :: css change text spacing |
Css :: pressed button css&html |
Css :: secondline ellipsis |
Css :: css html unterstreichen |
Css :: css hide timeline |
Css :: left and right box shadow only |
Css :: ghana |
Css :: css cut text of |
Css :: css animation slide from bottom to top |
Css :: bootstrap 3 offset |
Css :: wpdb insert query |
Css :: Placeholder font-family |
Css :: curved lines css |
Css :: change icon color to gradient css |
Css :: cursive css |
Css :: css opacity example |
Css :: timesheet template html css |
Css :: sass watch in all your project automatically |
Css :: set svg background color css |
Css :: scrollbar height css |
Css :: how to disable margin collapsing |
Css :: css align text |
Css :: css margin left |
Css :: change color when you mouse over a link (hover) |
Css :: vue import css scoped |
Css :: css anchor fill parent |
Css :: grid template columns |