Here is a sample of how you can make iframe responsive:
{codeBox}html<style>.responsive-iframe {position: relative;padding-bottom: 56.25%; /* Aspect ratio */height: 0;overflow: hidden;}.responsive-iframe iframe {position: absolute;top: 0;left: 0;width: 100%;height: 100%;}</style><div class="responsive-iframe"><iframe src="your-iframe-link" frameborder="0"></iframe></div>
Please note that not all websites allow their pages to be embedded in an iframe due to security concerns. You need to ensure that the website you're linking to permits iframe embedding.
0Comments