iframe center (iframe align center)

Posted by w3diy - 6 months ago

iframe align center

center iframe

<div class="iframe-container">
  <!--iframe link is the link to the Pakainfo-->
  <iframe src="https://www.pakainfo.com/"></iframe>
</div>

<style>
  .iframe-container {
        text-align:center;
        width:100%;
  }
</style>

iframe center

<div style="text-align:center;"><iframe style="
display:auto;
width="560" height="315" src="https://www.facebook.com/embed/" title="Facebook video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>