Forum


Replies: 2   Views: 937
Html list item marker highlight
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 NylonDerek  · 21-04-2022 - 19:07

Hello,

I have the following HTML:

<table>
  <tbody>
    <tr>
      <td style="background-color: #a9d29a;">
        <ul>
          <li>ef awefawef awefwef</li>
          <li>ef awefasdfsdfsdfwef awefwef</li>
          <li>sxdfsxdfxsdfef awefawef awefwe</li>
        </ul>
        <ol>
          <li>xdtgerg egrser</li>
          <li>seyhy7 h7yh</li>
        </ol>
      </td>
    </tr>
  </tbody>
</table>

I'm adding this HTML to the word doc using the embedHTML function. The problem is the <li> list item markers/bullets end up with a different background/highlight color in the resulting .docx.

Screenshot snippet of the .docx output:
https://i.imgur.com/KWVguDv.png

I am unable to set or override the marker/bullet color using CSS in the HTML, or through Microsoft Word 365.

I'm using phpdocx 12.5 premium.

Any help is appreciated.

Thanks!