Skip to content

Instantly share code, notes, and snippets.

@tobalsan
Created July 29, 2014 11:31
Show Gist options
  • Save tobalsan/177c7d51d0a5ca05763b to your computer and use it in GitHub Desktop.
Save tobalsan/177c7d51d0a5ca05763b to your computer and use it in GitHub Desktop.
/*All you have to do is create a div inside the div you want to give an inset border to*/
#something {
background: transparent url(http://davidrhysthomas.co.uk/linked/astrid_avatar.png) 50% 50% no-repeat;
min-width: 300px;
min-height: 300px;
padding: 0;
position: relative;
}
#something div {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 10px solid rgba(0,255,0,0.6);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment