HTML Frame Scrolling: Legacy scrolling Attribute

Legacy topic: The old scrolling attribute on <frame> should not be used for new pages.

Classic frames could use scrolling="yes", scrolling="no" or scrolling="auto" to influence whether scrollbars appeared inside a frame.

Historical scrolling syntax Top ↑

<frameset cols="50%,50%">
  <frame src="frame1src.html" scrolling="yes">
  <frame src="frame2src.html" scrolling="auto">
</frameset>

Scrolling with a modern iframe Top ↑

Use a normal <iframe>. Browsers handle the embedded document's scrolling as needed. The obsolete frame-era scrolling attribute is not the modern control to teach.

CSS applied to the iframe styles the iframe element itself. The content inside an iframe is a separate document; its own CSS controls overflow inside that document when you control the embedded page.

Frequently Asked Questions Top ↑

Should I use scrolling="no" on a new iframe?
No. Avoid old frame-era scrolling markup.

Can parent-page CSS directly style the contents of any iframe?
No. The iframe contains a separate document, and cross-origin security rules can also restrict access.

Frames overview Modern iframe





plus2net.com










✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer