Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Double underline tag?

Tags:

html

css

I want to make some text double-underlined in HTML.

<h1><u><i> website </i></u></h1>

I have two lines on the bottom instead of one. Is there a certain tag for that or would I have to do it in css?

like image 768
Kevril Avatar asked Sep 04 '25 16:09

Kevril


1 Answers

No, there is no dedicated tag for a double underline.

Alternatively you can try to add this:

h1.dblUnderlined {
    border-bottom: 3px double;
}

Note: The width must be 3px or greater because it represents the total width; not the width of each border. As you increase the measurement, the width of the lines and space may or may not be equal based on the divisibility of the defined measurement by 3. A remainder of 1, and 1 is added to the width of the space; a remainder of 2 will result in 1 being added to each line.

like image 171
roman Avatar answered Sep 07 '25 16:09

roman