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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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