I have this html structure
<div id="bg">
</div>
and a css
#bg{
background: transparent url(images/bg.png) no-repeat center center;
background-size: 100%;
width: 300px;
height: 300px;
}
as you can see from the above codes, this 'background-size: 100%;' should make the background image in the div(#bg) fill the whole container of (#bg) but unfortunately, it doesnt work at all even i also tried 'background-size: cover;' or 'background-size: contain;' but still no lucks, nothing works. Is there any way or alternative way that I could make the background image in the div(#bg) full or will fill the container or will stretch proportionally as what the width and height of the div(#bg)?