开发者

How to make a div jump a row

开发者 https://www.devze.com 2023-02-10 08:11 出处:网络
I want my div to jump to the next row although there is enough room on the row for it to stay there. I have three boxes on the row and i am interested in making the last box jump to the next row. Each

I want my div to jump to the next row although there is enough room on the row for it to stay there. I have three boxes on the row and i am interested in making the last box jump to the next row. Each box is defined by itself with its own class. I've for now added a <br/> but I am looking for a way to this using CSS.

I've tried using display: block on the second div's 开发者_运维技巧class but it makes it jump a line too which is not what i want.

Any suggestions?


Simply add to the second div's class clear:right or you can add to the third div's class clear:left both should do the trick.


Try using float and clear (both) CSS properties.

0

精彩评论

暂无评论...
验证码 换一张
取 消