Created
June 16, 2013 16:25
-
-
Save R3V1Z3/5792542 to your computer and use it in GitHub Desktop.
Simple way to highlight keypress or key combinations with CSS. Just add a <span> with a "keypress" class to the relevant text.
This file contains hidden or 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
/* | |
Simple way to highlight keypress or key combinations with CSS. | |
Just add a <span> with a "keypress" class to the relevant text. | |
example: Press <span class="keypress">Ctrl-C</span> to copy. | |
*/ | |
span.keypress { | |
/* for use with white background */ | |
border: 1px solid #000; | |
border-bottom: 3px solid #000; | |
border-radius: 3px; | |
padding-left: 5px; | |
padding-right: 5px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment