Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

scrollbar for html content in iframe/object [IE issue]

ie displays no scrollbar for iframe/object

10:38 pm on Aug 24, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 31, 2003
posts: 114
votes: 0

I'm trying to show html content (a file where the content is wider than the iframe/object area) by using the object tag, as iframe seem no good in html strict. However, regardless if I try iframe or object to show my content, IE (only tried in 7 so far) refuse to use a horizontal scrollbar, instead it compress the content in the iframe/object so that it fits the defined 500x400 pixel area... which isn't pretty if it originally was three times as wide.

<object data="page.php" type="text/html" width="500" height="400"></object>

<iframe src="page.php" width="500" height="400"></iframe>

Is there some kind of IE issue regarding iframe/object and scrollbars?