Help with embedding a pdf? - bootstrap

4    02 Mar 2017 20:43 by u/hypercat

Okay, so I really don't know jack about programming. But I am savvy enough to figure out how to embed a pdf using html

But I can't get the reader to be longer. Height. I like the horizontal padding, but I tried to make height 200% and that didn't work. Ideas, or scrap that and I'll use anything that makes it look decent.

Code I used:

<p>down vote</p>

<style type="text/css">#wrapper{ width:100%; float:left; height:auto; border:1px solid #5694cf;} </style>

<div id="wrapper"><object data="file.pdf" height="200%" width="100%"> <p>Your web browser doesn&#39;t have a PDF Plugin. Instead you can <a href="file.pdf"> Click here to download the PDF</a></p> </object></div>

2 comments

1

I think the "height: auto" in #wrapper is constraining the object height. If you set the height attribute on the object back to 100% and change the wrapper height around you should see a difference.

Good luck!

1

Thank you. I will try that. Hmm. No luck. Maybe it's the file itself.Ill try it with a few other ones.