Created
February 4, 2014 05:48
-
-
Save andreystarkov/8798724 to your computer and use it in GitHub Desktop.
resize background-image 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
#resize-image { | |
/* Just imagine that the image_1.png is 200x400px */ | |
background:url(image_1.png) top left no-repeat; | |
-moz-background-size: 100px 200px; | |
-o-background-size: 100px 200px; | |
-webkit-background-size: 100px 200px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment