I have an image that is 2000x2000 pixels in size. I originally believed that more pixels equated to better quality with less loss. Now, I am looking to display it on my browser at a resolution of 500x500.
To achieve this, I attempted to set the image as the background of a div using the following code:
<div id="layer1">
<div id="house"> </div>
</div>
#house {
height: 500px;
width: 500px;
background: url(../images/House.gif);
}
However, only a portion of the image is visible. My goal is to have the entire image displayed. The reason I am utilizing div layer1 is because I have additional elements besides just the house.
I would greatly appreciate any assistance with resolving this issue. Thank you!