dev_sk
dev_sk

Reputation: 95

Display divs side by side in mpdf

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>

Upvotes: 4

Views: 2695

Answers (1)

Itay Gal
Itay Gal

Reputation: 10824

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>

Upvotes: 1

Related Questions