Center align embedded pdf

Hello,

I have embedded a PDF document into a siteorigin editor widget, but the pdf appears on the left when previewing the page. The rest of the text in the widget is centered.

Further insight on this issue would be greatly appreciated.

Thank you,

Danielle

Hello Danielle,

From SiteOrigin Editor widget, switch to Text mode editor, so you’ll see your PDF embed code, wrap it with the following code:


<div style="display:table; margin-left:auto; margin-right:auto;"> 

 <!-- PDF embed code goes here -->

</div>

If it doesn’t help, please share your page URL, so I can assist you in better way.

Regards,
Kharis

Hi Kharis,

I was playing around with some snippets of code and resolved the issue!

Thanks anyway!

Danielle

Awesome! Glad to know you got it resolved.

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis