Jump to content

Getting Pdf To Display Properly


Guest thoth
 Share

Recommended Posts

I'm trying to dislay a pdf in a div using this code <div class="centertext"> <h2>Mastering Astronomy Instructions</h2> <h3><a href="ma.pdf">Download Intruction as a PDF File</a></h3> <h4>If you do not see a PDF load in this screen <a href="index.php#ffpdf">Click Here</a></h4> </div> <object class "middle" data="ma.pdf" type="application/pdf" width="100%" height="90%"> </object> </div> It doesn't properly size itself, how do I get it to fit in the div totally?

Link to comment
Share on other sites

  • 2 weeks later...

Hmm, i think the best way to do this would be an iframe?

<html><body><iframe src="whatever.pdf" width="100" height="%100"></iframe></body></html>

I'm not sure if this is what you are asking for?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...