Skip to content

Instantly share code, notes, and snippets.

@kdarty
Created April 29, 2016 18:05
Show Gist options
  • Save kdarty/76558b3f1329dc5f7ee58c5bd6f2b78b to your computer and use it in GitHub Desktop.
Save kdarty/76558b3f1329dc5f7ee58c5bd6f2b78b to your computer and use it in GitHub Desktop.
Make an Image Round with a Border and Shadow.
/* Source: http://stackoverflow.com/questions/16310985/add-border-to-circle-image */
img.circle-border {
width: 126px;
height: 126px;
border: 5px solid #fff;
border-radius: 150px;
-webkit-border-radius: 150px;
-moz-border-radius: 150px;
box-shadow: 0 0 8px rgba(0, 0, 0, .8);
-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .8);
-moz-box-shadow: 0 0 8px rgba(0, 0, 0, .8);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment