Menu Close

How to remove the border from IFrame with CSS?

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.

Posted in CSS