how do I get a new line, after using float:left?

后端 未结 5 961
梦谈多话
梦谈多话 2021-01-31 07:18

What I am trying to do is have rows of images, 6 images in each row. Some of these images need to have another image floating on top of them (flush with the lower-right corner)

5条回答
  •  长发绾君心
    2021-01-31 07:37

    You need to "clear" the float after every 6 images. So with your current code, change the styles for containerdivNewLine to:

    .containerdivNewLine { clear: both; float: left; display: block; position: relative; } 
    

提交回复
热议问题