Forum Moderators: not2easy

Message Too Old, No Replies

getting iframe to consume whole window

         

cripplertd

4:42 am on Sep 21, 2007 (gmt 0)

10+ Year Member



I have a menu script loaded from top px 0 - 24px, I want the iframe content to go from 25px to #*$! (size of page loaded)

This is the code I have but it doesnt work properly
<div id="iframe" style="position:absolute; left:0px; top:25px">
<iframe src="about:blank" border="0" name="content" height="100%" width="100%" frameborder="0"> </iframe>
</div>

also the width doesnt consume 100% there's still about 15px's on the right side I also need it to be compatiable with ie 6+ and ff.

Thanks in advance.

Marshall

7:21 pm on Sep 21, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



cripplertd,

This was discussed here on WebmasterWorld within the past month or so. Do a search of WebmasterWorld for "expanding iframe" or "adjusting iframe width" or something along those lines. I recall that some solution was found, but do not remember off hand what.

Marshall