css3 background sizing


/ Published in: CSS
Save to your folder(s)

thanks to Perishable Press


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.