(How) can I use rounded borders for an IFrame? | Sololearn: Learn to code for FREE!

+1

(How) can I use rounded borders for an IFrame?

4/29/2021 6:27:21 AM

programmeester

3 Answers

New Answer

+5

You can use border-radius property https://www.sololearn.com/learn/CSS/2238/?ref=app iframe{ width:100px; height:100px; border-radius:100px; // or 100% }

+2

Ray Libbenga 5 Answers. The div container method described in How to Get Rounded Corners on an iFrame using Border-Radius CSS works for me. The border-radius should be set to whatever you want the roundness to be, and the width must be set to the width of the iFrame, else you will get only a few (if any) rounded corners.

+1

Oke thank you!