JSFiddle - React, Tailwind, and code Playground

by Mike

HTML

<span class="strike">
    <span class="through through-1"></span>
    <span class="through through-2"></span>
    Strikethrough
</span>

CSS

.strike {
    position:relative;
    color:red;
}

.strike .through {
    position:absolute;
    left:0;
    width:100%;
    height:1px;
    background: red;
}

.through-1 {
    /* position of strike through from top */
    top:30%;
}

.through-2{
    /* position of strike through from top */
    top:60%;
}