Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Underline two letters separately

Tags:

html

Is there a way to have non-continuous underline? I want the underline stop and restart (and see that visually) where I closed and reopened the tags..

W. Raven, “al-Wa<u>sh</u><u>sh</u>aʾ”
like image 545
ali haydar Avatar asked Mar 08 '23 14:03

ali haydar


1 Answers

The simplest option would be to style the underlines to have a small amount of padding on their right.

u { padding-right: 2px; }
W. Raven, “al-Wa<u>sh</u><u>sh</u>aʾ”

Alternatively, if you want to be smarter with it and only apply it to two consecutive underlines. This finds any underline that directly follows another, and adds padding to it's left.

u + u{ 
  padding-left: 2px;
}
W. Raven, “al-Wa<u>sh</u><u>sh</u>aʾ”
like image 136
DBS Avatar answered Mar 10 '23 10:03

DBS