Thanks! That is indeed the HTML output of your invoice 🙂
Please try adding this extra CSS rule within your code snippet:
table.order-data-addresses {
display: block;
float: right;
width: auto;
}
Something went wrong. See here what happened when I tried to generate an invoice to check the modification.
I placed the css code like this.
Oh, sorry for that!
Please replace my last CSS rule with these, and try again:
.order-data-addresses,
.order-data-addresses > tr,
.order-data-addresses > tr > td,
.order-data-addresses > tbody,
.order-data-addresses > tbody > tr,
.order-data-addresses > tbody > tr > td {
display: block;
}
table.order-data-addresses td.order-data {
float: right;
}
Almost. Now something got mixed up. See here
Oh, I think I was confused about your request!
Please remove the last CSS rules and add this instead:
.topaddress {
float: right;
margin-bottom: -2cm;
}
.topaddress div {
margin: 2mm 0;
}
Almost there. I replaced the css but there needs to be more spacing in between.
I tried myself by putting some margin-top but that did not affect what I wanted.
Try adding more space below the logo:
table.head {
margin-bottom: 2cm;
}
Please note that all these CSS rules that I’m sharing with you, are ‘tricks’ to try to achieve what you want without the need to editing the PDF template layout directly. Hopefully, the latest would the missing change that would be needed to adapt the design, but if you think this is too much trouble, you could try applying the changes in the template code instead 🙂
Hi
Now its perfectly resolved. Thank you very much!!
Thanks for confirm this, @schnippo!
I’m glad to hear that it finally looks tidy 💪
Let me know if you need anything else 😉