Title: [Plugin: AnythingSlider for WordPress] HTML5 iframe attributes
Last modified: August 20, 2016

---

# [Plugin: AnythingSlider for WordPress] HTML5 iframe attributes

 *  Resolved [Vernon Fowler](https://wordpress.org/support/users/vernonfowler/)
 * (@vernonfowler)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-anythingslider-for-wordpress-html5-iframe-attributes/)
 * I want to use HTML5 and since Chrome/Firefox/Safari all happily ignore old iframe
   attributes ([http://www.w3schools.com/html5/tag_iframe.asp#leftcolumn](http://www.w3schools.com/html5/tag_iframe.asp#leftcolumn))
   you won’t notice anything wrong until you load it in good old IE. As it is invalid,
   it seems like IE just won’t render the iframe with non-HTML5 attributes.
 * So, I’m wondering if either the plugin will be updated, or if you can point me
   to the particular file and lines that write the iframe attributes and I’ll have
   a crack myself.
 * In particular, `frameborder` is not allowed in HTML5.
 * [http://wordpress.org/extend/plugins/anythingslider-for-wordpress/](http://wordpress.org/extend/plugins/anythingslider-for-wordpress/)

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

 *  Plugin Contributor [Mottie](https://wordpress.org/support/users/mottie/)
 * (@mottie)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-anythingslider-for-wordpress-html5-iframe-attributes/#post-2550146)
 * I guess I’m confused. Why can’t you just [style the iframe using css](http://jsfiddle.net/Mottie/sYrPa/)?
 *  Thread Starter [Vernon Fowler](https://wordpress.org/support/users/vernonfowler/)
 * (@vernonfowler)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-anythingslider-for-wordpress-html5-iframe-attributes/#post-2550209)
 * Above, I was wrong in my first post about the validation in IE. It seems the 
   plugin writes different code for IE. I was confused as to why the code rendered
   in IE had inline styles with `width: 0px;` I admit I don’t do enough testing 
   in IE. My friend worked out that if we simply over-ride the inline styles with`!
   important` styles, it would render. Thus, we came up with:
 * `#main div.anythingSlider,#main li.panel{width:690px !important} /* this is required
   to render the width of anythingSlider in IE */`
 * If you have a different id, change #main to whatever parent id selector you have
   in your html.
 * Thanks [@mottie](https://wordpress.org/support/users/mottie/) for the styling
   resource.
 * Argggh, I must test in IE more.

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

The topic ‘[Plugin: AnythingSlider for WordPress] HTML5 iframe attributes’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/anythingslider-for-wordpress.svg)
 * [AnythingSlider for WordPress](https://wordpress.org/plugins/anythingslider-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/anythingslider-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/anythingslider-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/anythingslider-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/anythingslider-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/anythingslider-for-wordpress/reviews/)

## Tags

 * [attributes](https://wordpress.org/support/topic-tag/attributes/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [html5](https://wordpress.org/support/topic-tag/html5/)
 * [iframe](https://wordpress.org/support/topic-tag/iframe/)
 * [Internet Explorer](https://wordpress.org/support/topic-tag/internet-explorer/)
 * [invalid](https://wordpress.org/support/topic-tag/invalid/)

 * 2 replies
 * 2 participants
 * Last reply from: [Vernon Fowler](https://wordpress.org/support/users/vernonfowler/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-anythingslider-for-wordpress-html5-iframe-attributes/#post-2550209)
 * Status: resolved