Created
March 27, 2016 18:55
-
-
Save tahsingungordu/bf27818b7ea31d48d237 to your computer and use it in GitHub Desktop.
Strikethrough on text with Css3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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