Sabmin Crow Sabmin Crow - 2 months ago 14
CSS Question

Is a shaped iframe possible?

Is it possible to have an iframe in the shape of a hexagon or diamond or anything other than a rectangle or square?

Or possibly even a div?

Answer

You could fake it with a CSS mask.

But portions of it will be obscured by it. You can't make the iframe render its contents inside of one of these shapes.

Comments