Skip to content

Instantly share code, notes, and snippets.

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 codingdudecom/62f2d45c28c5df4d3e790be7f99d1c4c to your computer and use it in GitHub Desktop.
Save codingdudecom/62f2d45c28c5df4d3e790be7f99d1c4c to your computer and use it in GitHub Desktop.
CSS Stroke Text Using -webkit-text-stroke
<span class="stroke-text">STROKE TEXT</span>
<footer>The Definitive Guide to <a href="http://www.coding-dude.com/wp/css/css-stroke-text/">Stroke Text CSS</a> made by <a href="http://www.coding-dude.com">Coding Dude</a></footer>
:root{
font-size:75px;
font-family:sans-serif;
font-weight:bold;
text-align:center;
margin-top:30vh;
}
.stroke-text{
-webkit-text-stroke:5px black;
-webkit-text-fill-color:transparent;
}
footer{
position:absolute;
bottom:50px;
right:50px;
font-size:13px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment