Skip to content
Advertisement

Dompdf overlapping the images

I am trying to convert a products gallery images into PDF using dompdf , but it overlaps images instead of showing them on next line (for the solution, I tried <br> also but did not work for me)

JavaScript

Here is css

JavaScript

See 4th image is half cut and also 5th is not showing, in my css i am clearing float after 3rd products but its not working and over lapping the images

enter image description here

Advertisement

Answer

After lot of dubbing i came to know that <li> was getting auto with that is why it was over lapping. I gave it fixed width and it was working and showing perfect grid

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement