div background color not setting all area

后端 未结 5 1473
我在风中等你
我在风中等你 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:36

    This is your perfect answer for css.

    .how_next {
        height:auto;
        background-color:#E9E9E9;
        padding:15px;
        font-size :16px;
        font-weight:bold;
        margin-top:10px;
        float:left;
        width:100%;
       }
    .how_next_single {
        width:32%;
        float:left;
      }
    .how_next_last {
        width:32%;
        float:right;
       }
    

提交回复
热议问题