Replies: 3   Views: 948
Css pseudo ::before is not working
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 parthfaladu  · 18-08-2020 - 12:24


    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        body {
            font-size: 16px;

        .text::before {
            content: "*";
            border: 1px;
            background: red;

    <div class="text">Hello world</div>


In above code i have added ::before pseudo but it's not displaying in word file can you please help me why it is not showing ?


Posted by admin  · 18-08-2020 - 12:31


What version and license of phpdocx are you using?


Posted by parthfaladu  · 18-08-2020 - 12:42


Thank you for quick replay PHPdocX version is 7.5
and can you please help me how to check license ?

Thank you,

Posted by admin  · 18-08-2020 - 13:24


Please send to contact[at] the username or e-mail of the user that purchased the license you are using.

Regardless of the exact version of phpdocx you are using, before selector is supported, but content style isn't supported. On the following pages you can read the supported contents and styles: