Skip to content

Instantly share code, notes, and snippets.

Created August 4, 2015 15:59
Show Gist options
  • Save anonymous/bb2e420f07ff327e4943 to your computer and use it in GitHub Desktop.
Save anonymous/bb2e420f07ff327e4943 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/oqibus/1
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<style id="jsbin-css">
.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>
</head>
<body>
<span class="strikethrough">Deleted text</span>
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<span class="strikethrough">Deleted text</span>
</body>
</html>
</script>
<script id="jsbin-source-css" type="text/css">.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);
}</script>
</body>
</html>
.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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment