HTML divs, how to wrap content?

后端 未结 10 1960
忘了有多久
忘了有多久 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 08:49

    If you style the #content like this it works.

    #content {
        background: #fbb;
        padding: 10px;
    }
    

    Notice there is no float.

    jsFiddle: http://jsfiddle.net/JRbFy/1/

    jsFiddle with equal height left-column and content effect: http://jsfiddle.net/JRbFy/2/

提交回复
热议问题