html - Is it possible to do this "half strikethrough" using CSS (without using images) -
i'm doing site without using images, make responsive , faster, css(3). i'm trying following effect using css
i used using
<div class="strikethrough"> <span>ou</span> </div>
and css (using image):
.strikethrough { background: url('strip.gif') repeat-x 50% 50%; } .strikethrough span { background: #eaebec; padding: 0 5px; display: inline-block; margin: 0 auto; }
is possible same using css?
<div style="height: 1px; text-align: center; background-color: black;"> <span style="position: relative; top: -0.5em; background-color: white;"> ou </span> </div>
or
<fieldset style="text-align: center; border: 0; border-top: 1px solid black;"> <legend> ou </legend> </fieldset>
Comments
Post a Comment