HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › margin-left:auto margin-right:auto not working › Re: Re: margin-left:auto margin-right:auto not working
August 10, 2012 at 17:36
#29084
For the time being an applying of “align:center” to a table is the only way to center it with PD4ML (however the method is not standard).
If it does not center, probably the hosting DIV has limited width. Try to apply “width:100%” to it. Also a temporal style like “DIV { border: 1 solid tomato }” should help you to identify reasons of the non-centering.