Forum


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

<html>

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

        .text::before {
            content: "*";
            height:50px;
            width:50px;
            border: 1px;
            background: red;
        }
    </style>
</head>

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

</html>

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

Hello,

What version and license of phpdocx are you using?

Regards.

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

Hello

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

Thank you,
Parth

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

Hello,

Please send to contact[at]phpdocx.com 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:

Regards.