How do you float elements without a vertical gap?

后端 未结 9 2002
野的像风
野的像风 2020-11-30 16:03

I am trying to float elements left. Here is my css:

width: 320px;
float: left;
border: 1px solid #ccc;
margin-top: 10px;
margin-right: 10px;
border-radius: 5         


        
9条回答
  •  鱼传尺愫
    2020-11-30 16:23

    You need to create two columns, and float the columns, rather than floating the individual boxes.

提交回复
热议问题