Hi, I am trying to figure out how to do an iframe of just a portion of a page (in this example the news highlight of yahoo). I got this to work with position:absolute, but I cannot seem to get this to work with position:relative. What happens is the portion of the target page that I am clipping shows up on the left side.
I would like to use this on a page that is centered, so position:absolute is not an option. Ideally I would like to put a float tag around all of this and treat the iframe like an image. I tried to do a float and also a table (putting the iframe in the center col of the table). I can't seem to carry over what I have done in my code example to anything position:relative.
Any ideas on where I should go with this?
I am not using the Yahoo page in my actual page, I am just using this as an example.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<DIV STYLE="position: absolute; left: -50px; top: -100px; clip:rect(165px 595px 415px 160px);">
<iframe width="595" height="415" src="http://yahoo.com" scrolling="no"></iframe>