Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

set distance between text and underline

{
   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.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #distance #text #underline
ADD COMMENT
Topic
Name
5+4 =