I need to use dmpdf to generate a grid of images, but the float does not work right. Instead of it coming down when it reaches the edge of the page it keeps going to the right. I have tried to put a div above limiting the size but it also did not solve.
Basically, the code is this:
.imagem {
height: 120px;
float: left;
}
.imagem img {
height: 100px;
}
<div class="imagem"><img src="http://www.devbattles.com/images/upload/php-elephant.png"/></div><divclass="imagem"><img src="http://www.devbattles.com/images/upload/php-elephant.png"/></div><divclass="imagem"><img src="http://www.devbattles.com/images/upload/php-elephant.png"/></div><divclass="imagem"><img src="http://www.devbattles.com/images/upload/php-elephant.png"/></div><divclass="imagem"><img src="http://www.devbattles.com/images/upload/php-elephant.png"/></div><divclass="imagem"><img src="http://www.devbattles.com/images/upload/php-elephant.png"/></div><divclass="imagem"><img src="http://www.devbattles.com/images/upload/php-elephant.png"/></div><divclass="imagem"><img src="http://www.devbattles.com/images/upload/php-elephant.png"/></div>
PS:Ialreadyenabledthedefine("DOMPDF_ENABLE_CSS_FLOAT", true);