Skip to content

Instantly share code, notes, and snippets.

@lelandf
Created March 1, 2016 22:04
Show Gist options
  • Save lelandf/15212f8c6a6c4badce01 to your computer and use it in GitHub Desktop.
Save lelandf/15212f8c6a6c4badce01 to your computer and use it in GitHub Desktop.
Dislodged border button CSS
.dislodged-border {
background: #FB3FDE;
border-radius: 30px;
color: #fff;
display: inline-block;
font-family: sans-serif;
padding: 15px 20px 14px;
position: relative;
text-decoration: none;
}
.dislodged-border,
.dislodged-border:before {
border-radius: 30px;
box-sizing: border-box;
}
.dislodged-border:before {
border: 2px solid #FB3FDE;
content: "";
display: block;
height: 100%;
position: absolute;
width: 100%;
top: 5px;
left: 3px;
z-index: -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment