Title: Not setting 100% width
Last modified: July 4, 2023

---

# Not setting 100% width

 *  Resolved [Terry J](https://wordpress.org/support/users/texasbiz/)
 * (@texasbiz)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/not-setting-100-width/)
 * Strange happenings:)
 * I have what I think are the correct settings, but the iframe is being resized
   to 413px.
 * Under basic settings, I have width field set to 100%
 * My shortcode:
 *     ```wp-block-code
       [advanced_iframe use_shortcode_attributes_only="true" src="//example.com" width="100%" height="600" scroll="no" onload_resize="true" onload_resize_delay="1000" onload_resize_width="true"]
       ```
   
 * The result of rendered html:
 *     ```wp-block-code
       <iframe id="advanced_iframe" name="advanced_iframe" src="//example.com/" width="413" height="19672" frameborder="0" allowtransparency="true" loading="lazy" style="width: 413px; height: 19672px; margin-top: 0px; margin-bottom: 0px;" onload="setTimeout(function() { ;aiResizeIframe(ifrm_advanced_iframe, &quot;true&quot;,&quot;1&quot;);},1000)"></iframe>
       ```
   
 * Have been back through settings many times and hoping you can get me back on 
   track.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/not-setting-100-width/#post-16872661)
 * Your problem is onload_resize_width=”true”
 * It changes the width dynamically. Simply remove this from the shortcode and then
   the 100% from the administration are used.
 * Shortcode always overwrites the settings from the administration.
 * Best regards, Michael
 *  Thread Starter [Terry J](https://wordpress.org/support/users/texasbiz/)
 * (@texasbiz)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/not-setting-100-width/#post-16872830)
 * I had removed the onload_resize_width=”true” but forgot to clear cache ):
 * Thanks and sorry for the silly question.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Not setting 100% width’ is closed to new replies.

 * ![](https://ps.w.org/advanced-iframe/assets/icon-128x128.png?rev=1028488)
 * [Advanced iFrame](https://wordpress.org/plugins/advanced-iframe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-iframe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-iframe/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Terry J](https://wordpress.org/support/users/texasbiz/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/not-setting-100-width/#post-16872830)
 * Status: resolved