Display divs side by side in mpdf

Viewed 1254

I am trying to display these two divs side by side in mpdf, but it is not working.

<p>
    <div style="width:10px; float:left;">
        Standard:
    </div>
    <div style="width:100px; border-bottom: 1px solid black; float:left;">
        3
    </div>
</p>

1 Answers

Your left div has 10px width, make it wider

<p>
    <div style="width:100px; float:left;">
        Standard:
    </div>
    <div style="width:100px; border-bottom: 1px solid black; float:left;">
        3
    </div>
</p>

Related