PDF Embedder displaying to the left??
Written on 02/06/20 at 11:18:15 EST by Jack Deth
Annoyed by PDF Embedder setting your PDFs to the left?

Drop in this small code as mentioned on their website and quoted below to fix your issues...



How to Center the PDF

The default settings of the plugin will display your PDF at 'maximum width' to fit the area available to it.

If you specify a fixed width for your PDFs that is smaller than the width available, you will probably find the PDF is left-justified within the main area of your web page.

If you want to center the PDF, this really depends on your theme's CSS styles, so you might need to ask your web designer to take a closer look, but one way or another you'd need to target the following CSS element in your theme's style.css file:

div.pdfemb-viewer {
margin: 0px auto !important;
}

It is unlikely the above suggestion would work directly - again, it depends on the rest of your CSS and layout, but hopefully this clarifies what your web designer needs to target in the CSS.

You can also add bespoke CSS through Appearance -> Customize -> Additional CSS.


Forums and Comments Brought to you by: www.2xlnt.com - WA
The comments are owned by the poster. We aren't responsible for its content.