I am trying to achieve a unique design with only one <span>
that has three different text decorations (underline, strikethrough, and overline) like this: (This is just an example, I need it to be changeable)
https://i.stack.imgur.com/61ZnQ.png
However, using multiple text-decorations
in one element like this doesn't seem to work:
span {
text-decoration: overline dotted green;
text-decoration: line-through wavy aqua;
text-decoration: underline double red;
}
Is there a way to achieve this effect using only one <span>
? Could I potentially utilize ::after
and ::before
, or employ languages such as SASS or LESS?
Thank you for your assistance.