Posted By

satie83 on 08/12/12


Tagged

css resize background


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tux-world


CSS - Resize your background image


 / Published in: CSS
 

  1. #resize-image {
  2.    /* Just imagine that the image_1.png is 200x400px */
  3.    background:url(image_1.png) top left no-repeat;
  4.    -moz-background-size: 100px 200px;
  5.    -o-background-size: 100px 200px;
  6.    -webkit-background-size: 100px 200px;
  7. }

Report this snippet  

You need to login to post a comment.