Menu

How to set margin/padding of OL / UL lists with WriteHTML(Cell)

Help
Liam Vans
2014-02-21
2014-02-21
  • Liam Vans

    Liam Vans - 2014-02-21

    Is there a way of setting the margin and/or padding (i.e. the left indent position) of lists? I've tried using CSS padding and margin, but this seems to be unsupported by TCPDF. Now the left indent of HTML lists is too far out from the left from a typographic point of view.

     
  • Liam Vans

    Liam Vans - 2014-02-21

    I know this can be done using the setListIndentWidth function, but I need it to be the indent of the font size of the actual element. So if I have a main div that has the font size of 30 and UL or OL elements with the font size of 10, the indent is that of the main div, while I need it to be that of the size I've set (via CSS) of the list elements.

    So in this case, the indent is 4x30 while it should be 4x10 points.

     

    Last edit: Liam Vans 2014-02-21

Log in to post a comment.