Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Help with iframe WordPress

  • SOLVED

Hi There,

We require some help getting an iframe set up correctly to only show a certain section of an external site.

The dimensions of the iframe is:
621 px wide
440 px high

Attached is the url and the area we would like to take.

The iframe is to sit on a wordpress page.

If anyone is able to do this please get in touch.
Please let us know if you have any questions regarding this project.

Many Thanks

Answers (3)

2013-01-29

Arnav Joy answers:

where is the iframe?


jimspankling comments:

We require code for the iframe to sit on our website.
does that make sense?


Arnav Joy comments:

try this

<div id="iframe_div">
<iframe src="http://www.bloomberg.com/markets/commodities/futures" width="60%" height="40%" align="center" ></iframe>
</div>


then style

#iframe_div{
border: 1px solid #000000;
height: 470px;
margin: auto;
overflow: hidden !important;
width: 642px;
}
#iframe_div iframe {
border: 0 solid;
height: 1247px;
margin-left: 1px;
margin-top: -763px;
overflow: hidden;
width: 644px;
}


Arnav Joy comments:

see using code i have provided what i am getting

http://imm.io/Uvvu

you can set it as per your theme in style.css


jimspankling comments:

Hi Arnav,

That code you supplied didn;t really work, please see the screenshot attached.

Thanks