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)
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)
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>