D
D
DocTypeMaster2021-03-06 11:44:53
PHP
DocTypeMaster, 2021-03-06 11:44:53

How to make correct markup in pdf file with html tags?

The question seems to be not complicated, but until its solution comes to mind, maybe someone has an idea how to do it correctly:

I generate a pdf file in Laravel and pass the html block in the form of a card to it. On the page of the pdf file, I make 10 cards in a cycle, I gave the following styles for the card

<div style='width: 50%; float: left; height: 20%; border-radius: 4px; background: #ccc;padding: 5px;'>dsfsd</div>


If I output one card, then it clearly becomes where it needs to be with the right size, but if I make 10 cards, then they leave the file,

604340dcbaa28100939433.png

tell me how to make a grid that would put the blocks as expected.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question