# How to set auto height for ifram in ionic

**URL:** <https://forum.ionicframework.com/t/how-to-set-auto-height-for-ifram-in-ionic/182479>\
**Category:** ionic-v3\
**Created:** [January 30, 2020, 12:44pm UTC](https://forum.ionicframework.com/t/how-to-set-auto-height-for-ifram-in-ionic/182479 "2020-01-30T12:44:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagar1412](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sagar1412/32/133814_2.png) [@sagar1412](https://forum.ionicframework.com/u/sagar1412)\
**Post date:** [January 30, 2020, 12:44pm UTC](https://forum.ionicframework.com/t/how-to-set-auto-height-for-ifram-in-ionic/182479/1 "2020-01-30T12:44:10Z")

</div>

‘\<iframe width=“100%” height=“100%” [src]=“url” frameborder=“0” allowfullscreen data-tap-disabled=“false” \>’

---

<div class="post-metadata">

**Author:** ![PappJulioNicolas](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@PappJulioNicolas](https://forum.ionicframework.com/u/PappJulioNicolas)\
**Post date:** [January 30, 2020, 1:00pm UTC](https://forum.ionicframework.com/t/how-to-set-auto-height-for-ifram-in-ionic/182479/2 "2020-01-30T13:00:33Z")

</div>

Be careful maybe what is happening is that ion-content is not 100% width. You need to set all items above iframe to 100%.

Regards.
