Skip to content

Instantly share code, notes, and snippets.

@egulhan
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save egulhan/fb5f0966c348783e726e to your computer and use it in GitHub Desktop.

Select an option

Save egulhan/fb5f0966c348783e726e to your computer and use it in GitHub Desktop.
Keyboard key expression in HTML
kbd {
padding: .1em .6em;
border: 1px solid #ccc;
font-size: 11px;
font-family: Arial,Helvetica,sans-serif;
background-color: #f7f7f7;
color: #333;
-moz-box-shadow: 0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
-webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
box-shadow: 0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
border-radius: 3px;
display: inline-block;
margin: 0 .1em;
text-shadow: 0 1px 0 #fff;
line-height: 1.4;
white-space: nowrap;
}
<html>
<body>
<kbd>control</kbd>+<kbd>c</kbd>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment