HTML divs, how to wrap content?

后端 未结 10 1781
忘了有多久
忘了有多久 2021-02-01 08:07

I have 3 div\'s like on this image:

\"enter

div1 has fixed width but variable hei

10条回答
  •  南笙
    南笙 (楼主)
    2021-02-01 09:04

    This should work for you, at least pointing you in the right direction.

    CSS:

    .box {border:1px dashed black;}
    #content {width:1000px;}
    #clear {clear:both;}
    
    #left {float:left; width:200px; height:100px; margin-right:15px;}
    #top {float:left; width:780px; height:200px;}
    #main {float:left; min-width:780px; max-width:1000px;}
    

    HTML:

    
    
    
    
    
    
    
    Left
    Top
    Main

提交回复
热议问题