Jump to content

How do I add the width and height to an iframe in my code.


VinceGledhill

Recommended Posts

Hi People. 

 

Thanks for all the help on here in the past, you have been brilliant.

 

I run the airfield cards.com website and have a script in the output page that is as follows.

To Embed this Card into your website, cut and paste the following code: <input name="generate" value="<? echo "<iframe  src='http://www.airfieldcards.com/php/courtesy_card.php?id=".$id. "' ></iframe>";?>">

 

Now the way it shows on the site is like this

<iframe  src='http://www.airfieldcards.com/php/courtesy_card.php?id=165' ></iframe>

 

So, I look at the iframe code from google that should be cut and pasted into a website (obviously it's working code from google)

<iframe width="700" height="1500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps/ms?msa=0&msid=203054009368331462137.0004aa731e7de2e86a0e0&ie=UTF8&t=h&vpsrc=0&ll=53.800651,-4.042969&spn=80.03397,61.435547&z=4&output=embed"></iframe><br /><small>View <a href="http://maps.google.co.uk/maps/ms?msa=0&msid=203054009368331462137.0004aa731e7de2e86a0e0&ie=UTF8&t=h&vpsrc=0&ll=53.800651,-4.042969&spn=80.03397,61.435547&z=4&source=embed" style="color:#0000FF;text-align:left">AirfieldCards.com</a> in a larger map</small>

 

Now I have tried to take the code from the google iframe (width/height/scrolling/etc) and paste it into my source but it doesn't work.

 

Here's how I have done it.

To Embed this Card into your website, cut and paste the following code: <input name="generate" value="<? echo "<iframe  width="700" height="1500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src='http://www.airfieldcards.com/php/courtesy_card.php?id=".$id. "' ></iframe>";?>">

 

Can someone please modify my fist lot of code so that I have the correct height and width settings (700 x 1500)

 

Thanks in advance

 

Regards

Vince Gledhill

 

 

 

 

Link to comment
Share on other sites

You can do this.

 

To Embed this Card into your website, cut and paste the following code: <textarea rows="5" cols="40" id="embed_code"><iframe  width="700" height="1500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.airfieldcards.com/php/courtesy_card.php?id=<?php echo $id;?>"</iframe></textarea>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.