Iframe: CSS Styles

With CSS, you can also change the size, style and color of the iframe's border:

<iframe src="boo.html" style="border:5px dotted red"></iframe>

Notice that there is no width and height specified. This is the default size of an iframe window.

Back button Table of Contents Next button