i use <p align="center"> tag to align text
$html = '<p align="center">text</p>';
then i replace variable in the document using:
$docx->replaceVariableByHTML($section, 'inline', $html);
i get 0 effect for alignment.
should i use a different tag?
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it now