Forum


Replies: 1   Views: 3350
Alignment left and right on the same line
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 xkp  · 02-05-2012 - 09:28

Dear sirs,
using PRO
I tried the follwing code:


require_once '../../classes/CreateDocx.inc';

$docx = new CreateDocx();



$text = array();

$text[] =
array(
'text' => 'Lorem ipsum',
'u' => 'single',
);

$text[] =
array(
'text' => ' sed do eiusmod tempor incididunt',
'b' => 'single',
);



And I perfectly got
the 1st element of the array underlined, and the secon in bold.


Now I want the 1st element to be aligned on the left and the second on
the right, ON THE SAME LINE.


I tried:

$text = array();

$text[] =
array(
'text' => 'Lorem ipsum',
'u' => 'single',
'jc' => 'left',
);

$text[] =
array(
'text' => ' sed do eiusmod tempor incididunt',
'b' => 'single',
'jc' => 'right',
);


but it is not working.
Any idea?
Thanks in advance.