Filter (Advanced Search)
Downloads
0
Views
217
Video

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

Details

By default, an iframe has a border around it.

To remove the border, add the style attribute and use the CSS border property:

Example

<iframe src="/html/computer.htm" style="border:none;" title="Iframe Example"></iframe>

 

 

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

Example

<iframe src="/html/computer.htm" style="border:2px solid red;" title="Iframe Example"></iframe>


<!DOCTYPE html>
<html>
<body>

<h2>Remove the Iframe Border</h2>
<p>To remove the default border of the iframe, use CSS:</p>

<iframe src="/html/computer.htm" style="border:none;" title="Iframe Example"></iframe>
<HR>

<h2>Custom Iframe Border</h2>
<p>With CSS, you can also change the size, style and color of the iframe's border:</p>

<iframe src="/html/computer.htm" style="border:2px solid red;" title="Iframe Example"></iframe>

</body>
</html>



Ad