[b]This code works fine:[/b]
[code]
$docx = new CreateDocx();
$html= '<style>p {font-family:arial;font-size:33px;}</style>';
$html.= '<p>Some sample text. <strong><span>Some bold text.</span></strong></p>';
$docx->addHTML($html);
$docx->createDocxAndDownload('example_html');
[/code]
[b]This code fails![/b]
[code]
$docx = new CreateDocx();
$html= '<style>p {font-family:arial;font-size:33px;}</style>';
$docx->addHTML($html);
$html= '<p>Some sample text. <strong><span>Some bold text.</span></strong></p>';
$docx->addHTML($html);
$docx->createDocxAndDownload('example_html');
[/code]
In the second example, the style gets ignored. Why would adding the style coding separately fail?
Thanks,
-Patrick