this is my html markup:
<div class="main">
<div class="background">
</div>
</div>
this is the corresponding css:
body{margin:0;
padding:0;}
.main{width:100%;
height:auto;}
.background{width:100%;
background:url('../images/bg.jpg') no-repeat 50% 50%;
background-size:cover;
}
clearly the above code wont show any background image on my .background div.what i want is,i don't want to give height to my background div and want the background image on that div.