...

View Full Version : smaller background image



joliett89
08-01-2011, 11:07 PM
Just wondering how to make browser to display the jpg 50% smaller (it gets repeated on x and y on entire website):



body { background-image:url('sheep.jpg') }


I know its best just to make it smaller in Photoshop, but I would like to know the code too.

Sammy12
08-02-2011, 05:38 AM
http://www.w3schools.com/cssref/css3_pr_background-size.asp

The background-size property is supported in IE9+, Firefox 4+, Opera, Chrome, and Safari 5+.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum