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


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

4/29/2021 6:27:21 AM


3 Answers

New Answer


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% }


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.


Oke thank you!