Categories
CSS

How to remove the border from IFrame with CSS?

Spread the love

Sometimes, we want to remove the border from IFrame with CSS.

In this article, we’ll look at how to remove the border from IFrame with CSS.

How to remove the border from IFrame with CSS?

To remove the border from IFrame with CSS, we set the frameBorder attribute.

For instance, we write

<iframe src="myURL" width="300" height="300" frameBorder="0">
  Browser not compatible.
</iframe>

to set the frameBorder attribute to 0 to hide the border.

Conclusion

To remove the border from IFrame with CSS, we set the frameBorder attribute.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *