I have a div
<div id="page">
</div>
Containing the following css code:
#page {
background: url('images/white-zigzag.png') repeat-x;
}
@media (max-width: 600px) {
#page {
background: url('images/white-zigzag-mobile.png') repeat-x;
}
}
Upon resizing my browser, I observed that the "mobile" background is displayed correctly. However, when enlarging the browser again, the original "large" background does not always reappear as expected.
This intermittent issue has occurred frequently enough for me to consider addressing it. Are there any solutions to prevent the problem of background images not appearing or a method to resize background images so they adjust according to the new size specified in the media query? As far as I am aware, changing the size of a background image is not widely supported...