div background color not setting all area

后端 未结 5 1464
我在风中等你
我在风中等你 2021-01-26 05:00

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

5条回答
  •  醉梦人生
    2021-01-26 05:28

    See this is the perfect answer of your query.

    Css:

    .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
     }
    

    Working Link

提交回复
热议问题