Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
.inner-border {
background: #000;
color: #fff;
margin: 50px;
padding: 15px;
position: relative;
.inner-border:before {
border: 5px solid #000;
content: "";
position: absolute;
top: -10px;
bottom: -10px;
left: -10px;
right: -10px;
<div class="inner-border">
Transparent Inside Border
// alert('Hello world!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment