If a div has “clear:right”, nothing should float to the right of it, should it?

前端 未结 5 1871
暗喜
暗喜 2021-02-15 11:04

I seem to have gotten confused as to what the css \"clear\" keyword means.

I have a number of div elements, all with \"float:left\". The second last div element also has

5条回答
  •  情深已故
    2021-02-15 11:59

    I have used padding and margin. If it is not possible to use in your case then the following solution will not be appropriate.

    http://jsfiddle.net/8J7V6/5/

提交回复
热议问题