Skip to content

Instantly share code, notes, and snippets.

@mattwagl
Created April 16, 2015 19:31
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 mattwagl/000eaa1da8e504d4b3ad to your computer and use it in GitHub Desktop.
Save mattwagl/000eaa1da8e504d4b3ad to your computer and use it in GitHub Desktop.
An arrow button in pure CSS.
.arrow-button {
background: #555;
background: linear-gradient(-135deg, transparent 22px, #555 0) top right,
linear-gradient(-45deg, transparent 22px, #555 0) bottom right;
background-size: 100% 50%;
background-repeat: no-repeat;
font-family: helvetica;
padding: 10px;
font-size:20px;
color: #fff;
line-height: 40px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment