Skip to content

Instantly share code, notes, and snippets.

@tahsingungordu
Created March 27, 2016 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tahsingungordu/bf27818b7ea31d48d237 to your computer and use it in GitHub Desktop.
Save tahsingungordu/bf27818b7ea31d48d237 to your computer and use it in GitHub Desktop.
Strikethrough on text with Css3
<style>
.strikethrough {
position: relative;
}
.strikethrough:before {
position: absolute;
content: "";
left: 0;
top: 50%;
right: 0;
border-top: 1px solid;
border-color: inherit;
-webkit-transform:rotate(-5deg);
-moz-transform:rotate(-5deg);
-ms-transform:rotate(-5deg);
-o-transform:rotate(-5deg);
transform:rotate(-5deg);
}
</style>
<span class="strikethrough">Example Text</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment