How do I stop these divs from overlapping?

前端 未结 6 1278
悲哀的现实
悲哀的现实 2020-12-16 20:31

I have three divs, within a content div.

Container width 70%. Within that I have -Left, width 20%. -Content, width 60%. -Right, width 20%.

I would like co

6条回答
  •  青春惊慌失措
    2020-12-16 21:22

    Here you go, if you want a min width, set it on the container

    http://jsfiddle.net/VBSYu/1/

    #container{
        width: 70%;
        min-width: 1000px;
    }
    #left {
         float: left;
         width: 20%;
    }
    #content {
        float: left;
        width: 60%;
    }
    #right {
        float: right;
        width: 20%;
    }​
    

提交回复
热议问题