Last active
December 22, 2015 02:49
-
-
Save psql/6406445 to your computer and use it in GitHub Desktop.
over-ride avatar with just css!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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