I have a div, and I want to make a whole background image fit inside the div, even though the image is a little bigger than the div, how would I go about shrinking this dynamically?
+1
A:
Looks like it is possible in CSS3 but not currently in CSS2
http://www.w3.org/TR/2002/WD-css3-background-20020802/#background-size
This is also a duplicate of this question
David Young
2010-07-26 21:14:56
Even so, it would be best to pre-size the image on the server side. Regardless, +1 for answering the qustion.
George Marian
2010-07-26 21:17:30