Hello, I want to make a grid in a rectangular block-square blocks 40x40px, but my blocks go out of a rectangular area, how to do?
<div style = "width: 1188px; height: 343px; border: 1px solid green;"> <? php $ number = (1188 343) / (40 40);
for ($ x = 0; $ x <= $ number; $ x ++) {?> div style = "width: 40px; height: 40px; border: 1px solid red; float: left;"> </ div> < ? }?> </ div>