Filter (Advanced Search)
Downloads
0
Views
221
Video

Video is not available... Embedded is previous playlist.

Details

Use the height and width attributes to specify the size of the iframe.

The height and width are specified in pixels by default:

Example

<iframe src="/html/computer.htm" height="200" width="300" title="Iframe Example"></iframe>

Or you can add the style attribute and use the CSS height and width properties:

Example

<iframe src="/html/computer.htm" style="height:200px;width:300px;" title="Iframe Example"></iframe>


<!DOCTYPE html>
<html>
<body>

<h2>HTML Iframes</h2>

<p>You can also use the CSS height and width properties to specify the size of the iframe:</p>

<iframe src="/html/computer.htm" height="250" width="500" title="Iframe Example"></iframe>

<HR>

<p>You can also use the CSS height and width properties to specify the size of the iframe:</p>
<iframe src="/html/computer.htm" style="height:200px;width:500px" title="Iframe Example"></iframe>
</body>
</html>



Ad