Created
April 25, 2012 04:56
-
-
Save magemore/2486547 to your computer and use it in GitHub Desktop.
Resize your background image
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
Lets you do just what the title says. Simply change the size values and bam: resized background image.