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 2, 2012 at 18:40
#29078
Thank you for replying. I modified my .CSS file to include the following. The PDF output did not change. Is there something else?
Best,
Clif…
@media pdf {
table.CenterDiv {
align:center;
}
}
.CenterDiv
{
margin-left:auto;
margin-right:auto;
}