Title: class short-code is not working
Last modified: August 22, 2016

---

# class short-code is not working

 *  Resolved [pathuri](https://wordpress.org/support/users/pathuri/)
 * (@pathuri)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/class-short-code-is-not-working/)
 * When I use class=”responsive-iframe-container” inside the short-code it is not
   working. But If I wrap outside using a <div> it is working.
    CSS is defined in
   main style sheet.
 * <div class=”responsive-iframe-container”>
    [advanced_iframe securitykey=”xxx”
   src=”[https://docs.google.com/spreadsheets/d/1hHNGKL7QXgNyUQBSMuIifTARbx-8Bdn_GBM9rUCyInE/pubhtml?&#8221](https://docs.google.com/spreadsheets/d/1hHNGKL7QXgNyUQBSMuIifTARbx-8Bdn_GBM9rUCyInE/pubhtml?&#8221);
   widget=”true” headers=”false” enable_responsive_iframe=”true” allowfullscreen
   =”true” scrolling=”no” class=”responsive-iframe-container”] </div>
 * Please help!
 * [https://wordpress.org/plugins/advanced-iframe/](https://wordpress.org/plugins/advanced-iframe/)

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

 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/class-short-code-is-not-working/#post-5182878)
 * Have you checked if it is rendered to the iframe?
    If it is you have to check
   if responsive-iframe-container to work on an iframe element. maybe it is only
   defined for a div in your css.
 *  Thread Starter [pathuri](https://wordpress.org/support/users/pathuri/)
 * (@pathuri)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/class-short-code-is-not-working/#post-5182963)
 * Currently css is designed to work with div (all css entries are defined in theme
   style sheet)
    How to make it work with iframe element?
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/class-short-code-is-not-working/#post-5183003)
 * This pure css. But I can not tell you if responsive-iframe-container is designed
   to work for the iframe element.
    You can e.g. add the styles your want directly
   to config -> style
 * Best, Michael

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

The topic ‘class short-code is not working’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/class-short-code-is-not-working/#post-5183003)
 * Status: resolved