Is it possible to create an iframe for a specific part of a page?

0

Is it possible to get a specific part of a site by mapping it to an iframe?

I've seen some solutions using css, but it does not have the effect of setting the region.

clip: rect (top, right, bottom, left)
    
asked by anonymous 09.06.2016 / 05:57

1 answer

2

Yes, it is, just put the id of the section that you want to display by default at the end of the url in src . The most you can do is hide the scroll, note that this scroll is not yours, it is the other page that you are importing, you have no control over it. You can however hide it as I did. In this case, by way of example I defined that I want the footer to appear

div {
  overflow:hidden;
  display:inline-block;
  }
iframe {
  margin-right:-15px;
  }
<div>
<iframe src="http://www.bbc.com/#orb-footer">

</iframe>
</div>
    
09.06.2016 / 10:45