How to align two contents in the same horizontal line in DOM pdf on magento2

Solution

The advanced CSS are not supported in the DOM pdf creator extension in magento2.
So we have to find an alternative method to show the contents in the same horizontal line.

So for this, we can use a table structure. The structure should be

<table>
   <tr>
      <td>
         <div>content 1</div>
      </td>
      <td>
         <div>content 1</div>
      </td>
   <tr>
</table>

Through this, we can align contents horizontally on the same line using basic CSS.

Thank you.

Leave a comment

Your email address will not be published. Required fields are marked *