
Originally Posted by
Beverleyh
use
id="slider-iframe" in the iframe element and then this in the stylesheet;
Code:
#slider-iframe { overflow: hidden; }
That's right, and the iframe would then look like so:
Code:
<iframe id="slider-iframe" name="slider-frame" src="slider.htm"></iframe>
But you could use any valid cross browser selector that would single out that iframe. Like - say it's the only iframe on the page, then you could just use the iframe selector. Or if it's the only iframe inside an element with a unique id, you could use that element's id followed by iframe.

Originally Posted by
Burgin
. . . by including scrolling="no" the code doesn't validate.
That's also right. You're faced with some choices. You could use another DOCTYPE, one that allows that attribute. Or you could live with it not validating. As I said, in this case that won't hurt anything. Or you could choose not to support those browsers that require scrolling="no".
For that last choice they are all IE, and all browsers built on the IE browser engine, perhaps one or more others. Using IE 9 here, it appears to be all versions of IE. However, using:
Code:
<style type="text/css">
html, body {
overflow: hidden;
}
</style>
on the page inside the iframe, in this case on slider.htm, appears to solve the problem. In fact, with that you probably don't need any style for this on the top page for any browser.
So that's another and perhaps the best choice. But it does require that you have control over the style for that slider.htm page.
There may be other choices. I can't think of any more at the moment.
Bookmarks