Posted By

adambundy on 03/23/10


Tagged

css CSS3


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

adambundy


css3 background sizing


 / Published in: CSS
 

thanks to Perishable Press

  1. .background-size {
  2. background-image: url(http://domain.tld/path/bg.png);
  3. -webkit-background-size: 50% 50%; /* Safari */
  4. -khtml-background-size: 50% 50%; /* Konquer */
  5. -moz-background-size: 50% 50%; /* Firefox */
  6. -o-background-size: 50% 50%; /* Opera */
  7. background-size: 50% 50%; /* CSS3 */
  8. }

Report this snippet  

You need to login to post a comment.