CSS iframe height Sample Programs set iframe height 100%

How to Set Iframe Height to 100%


Use below snippet to set height of an iframe to 100%, however we can also set width of ifram to 100% also.

<iframe src=”http://domain.com” frameborder=”0″></iframe>

iframe {

    display:block;

    width:100%;

    height:100vh;

}