[iframe] omit width/height if parameters not passed? (2 posts)

  1. jeffkee
    Posted 3 years ago #

    Mobile grid usage (skeleton CSS etc.) is increasing quite a bit, and my iframe height/width is determined by a css class. The width/height of iframes under the content div is set to a certain dimension, so I need an iFrame tag that does NOT include width or height, but just a class attribute. Currently this doesn't appear to be supported. When I do not specify it, it defaults to 100% width and 480 px height.

    Essentially I need this:

    <iframe src="http://...." class="scale-with-grid"></iframe>

    No width/height should even be part of the tag. Is there a way to do this?


  2. webvitalii
    Plugin Author

    Posted 3 years ago #

    You may just edit your copy of Iframe plugin and remove width and height from defaults.

    Also change version of the plugin to "100" for avoiding plugin updates and losing your code.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • iframe
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.