I have a div containing 3 div inside it. My problem is when am setting background color to first div, the div inside first div is not applying the background.
My code is,
<div class="how_next">
<div class="how_next_single" align="center">
<p><img src="images/livemonitoring.png" /></p>
<p>Heading</p>
<h3>Description</h3>
</div>
<div class="how_next_single" align="center">
<p><img src="images/livemonitoring.png" /></p>
<p>Heading</p>
<h3>Description</h3>
</div>
<div class="how_next_last" align="center">
<p><img src="images/livemonitoring.png" /></p>
<p>Heading</p>
<h3>Description</h3>
</div>
</div>
My style is,
.how_next {
height:auto;
background-color:#E9E9E9;
padding:15px;
font-size:16px;
font-weight:bold;
margin-top:10px;
}
.how_next_single {
width:32%;
float:left;
}
.how_next_last {
width:32%;
float:right;
}
Now the output is
What is the problem in my coding. Is there any solution.