DIVs inside another DIV inside another DIV with CSS

后端 未结 1 1161
星月不相逢
星月不相逢 2021-02-04 19:25

Here\'s what I\'m trying to achieve:

\"Preview\"

This is the HTML code I wrote:

相关标签:
1条回答
  • 2021-02-04 19:50
    #Div1
    {
    width:800px;
    margin:0 auto;
    overflow:hidden;
    float:left;
    }
    
    #Div2
    {
    width:100%;
    float:left;
    }
    
    #Div3
    {
    width:100%;
    clear:both;
    }
    
    #Div4, #Div6
    {
    float:left;
    width:30%;
    }
    
    #Div5
    {
    float:left;
    width:40%;
    }
    
    #Div7
    {
    width:70%;
    margin:50px auto;
    }
    

    If I haven't forgotten something that should be round about it

    0 讨论(0)
提交回复
热议问题