Forum


Replies: 4   Views: 1142
How do i create a two columns document with different background color/image..
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by Diaa  · 07-11-2021 - 08:14

Hello,

I'm trying to create a two columns document with different background color/image to acheive something similar to this

https://www.en.lebenslaufmuster.biz/img/lebenslauf_1.jpg

Using embedHTML

My first thought was to create a table with two columns and work from there, however the table doesn't extend to the end of the document, and as the two columns have different background colors it doesn't work.. tried setting min-height, height for the table but nothing works..

My next approach was to set the document background image and use the table for content only, however I can't get the image properly aligned with the document as I don't know what converts the document size to pixels..

Anyone has any ideas? Thank you,,