Menu
I have a #div which has a width of 800px and a height of 25px, and an image which has a width of 500px and a height of 50px.
The image is set as the background of the #div using “background-image: url(“images/bg_list.gif”);”.
How do I make the height of the image (50px) compress into the height of the #div (25px)? I want the entire image to be visible within the #div.
I could of course compress the height of the image using Photoshop, though I’d prefer for it to be dynamic, so that it adjusts itself if I change the height of the #div.
Thank you for your time.