|
|
By default, an iframe has a border around it. |
<!DOCTYPE html>
<html>
<body>
<h2>Remove the Iframe Border</h2>
<p>To remove the default border of the iframe, use CSS:</p>
<iframe src="https://itupto.com" style="border:none;" title="Iframe Example"></iframe>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<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="https://itupto.com" style="border:2px solid red;" title="Iframe Example"></iframe>
</body>
</html>
Category: | Web Tutorial |
Sub Category: | HTML Iframes |
Uploaded by: | Admin |
Read Articlehttps://develop.horje.com/learn/1434/reference