I was looking into using a frameset
on my otherwise XHTML 1.0 Strict site, but I've noticed that with HTML5 the frameset
feature is obsolete, and an iframe
should be used instead.
I need to load a foreign site within my site, with my site only occupying the very top portion of the screen (and it'd be nice if it didn't impede scrolling, either, e.g. looked as if my top portion of my site was actually an iframe within the foreign site).
How do I do this with HTML5 iframe
? Can I set the height
of the iframe
to the full-size of the document that's loaded within the iframe
, and the width
to full screen width? My own site will only be a small one-line menu at the top; the whole screen has to be dedicated to the iframe
otherwise.
No JavaScript, must be HTML5-only (possibly with some minor CSS, but nothing major, since it has to work in browsers like lynx
/ links
).