Forum


Replies: 3   Views: 1453
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 ?