tags:

views:

33

answers:

1

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
Even so, it would be best to pre-size the image on the server side. Regardless, +1 for answering the qustion.
George Marian