Skip to content

Instantly share code, notes, and snippets.

@psql
Last active December 22, 2015 02:49
Show Gist options
  • Save psql/6406445 to your computer and use it in GitHub Desktop.
Save psql/6406445 to your computer and use it in GitHub Desktop.
over-ride avatar with just css!
/*Over-ride user avatar*/
#avatar.user img {
display: block;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: url(http://static.tumblr.com/hwdkyha/iGomsgm1o/bunny.gif) no-repeat; /*Change img path, obviouslyr*/
background-size: 80px 80px;
border: 0;
width: 80px; /* Width of new image */
height: 80px; /* Height of new image */
padding-left: 80px; /* Equal to width of new image */
}
.double #avatar {
left: -100px;
}
.double #avatar:hover {
top: -60px;
}
@media screen and (max-width: 970px){
.double #avatar.user {
top: -100px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment