Advanced Search
Go Back   Dynamic Drive Forums

Blogs from the Members of Dynamic Drive Forums
Featured blog entry from molendijk
molendijk's Avatar

Replacing iframe attributes with javascript (HTML5)

Posted 01-11-2012 at 08:12 PM by molendijk
I was working the other day on a script for setting the height of an iframe to match the height of its content and noticed that under certain circumstances the iframe gets its scroll bars 'back' when it shouldn't. This happens mainly when the iframe is given a very small width. Overflow: hidden solves the problem in Firefox (most of the time), but not in IE. This browsers needs scrolling="no", which also works in non-IE. However, attributes like scrolling="no" and frameborder="no"...
Views 13150 Comments 0 Trackbacks 0
Recent Entries
Recent Comments
  1. There are no recent entries to display.
  1. There are no recent comments to display.
Find more...

All times are GMT. The time now is 12:51 PM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.