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; }
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; }