Reputation: 5505
I have a barcode inside a <div class="col-xs-n">
element in Odoo 10 QWeb PDF report:
<div class="col-xs-3">
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)" style="width:300px;height:50px;"/>
</div>
Is there any class that could be applied to <div>
element in order to horizontally center the barcode?
Upvotes: 0
Views: 3114
Reputation: 214
Try adding these classes..
There are native bootstrap classes available like:
class="text-center"
or
class="pagination-centered"
Upvotes: 2
Reputation: 1174
Use bootstrap class text-center like below.
<div class="col-xs-3 text-center">
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)" style="width:300px;height:50px;"/>
</div>
I hope this will help you.
Upvotes: 2