How to get Floating DIVs inside fixed-width DIV to continue horizontally?

前端 未结 9 520
情歌与酒
情歌与酒 2020-12-02 12:43

I have a container DIV with a fixed height and width (275x1000px). In this DIV I want to put multiple floating DIVs each with a width of 300px, and have a horizontal (x-axi

9条回答
  •  温柔的废话
    2020-12-02 13:09

    Use:

        div#container {
            overflow: auto;
        }
    

    Or add a clearing div below the three divs with the style:

        {
            clear: both
        }
    

提交回复
热议问题