Currently, I am in the process of developing a website that prioritizes responsiveness and speed by avoiding the use of any images. Instead, I aim to achieve desired effects solely through CSS.
In the past, I would create a particular effect using the following HTML structure:
<div class="strikethrough">
<span>Ou</span>
</div>
accompanied by this CSS (which utilized an image):
.strikethrough {
background: url('strip.gif') repeat-x 50% 50%;
}
.strikethrough span {
background: #EAEBEC;
padding: 0 5px;
display: inline-block;
margin: 0 auto;
}
The question at hand is whether it is possible to replicate the same effect purely through CSS?