Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

whats wrong with this...?

Status
Not open for further replies.

itslogical

Technical User
Jul 1, 2004
7
NL
sorry to start another thread on this but i thougt it was better.
have a look at there you see the problem.
its about the iframe.

in the previous thread i wrote (about the iframe im using in my page .........Its set in height as 100% but thats not what its doing ...
but the member who responded( vbkris ) said for him it worked okay...
but what is the problem then ?

this is the frame....

<iframe id="main" src="external.htm" width="790" HEIGHT="100%" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" name="main" border="0" style="float: right"></iframe>

And as you can see on the testpage ( the 100% setting doesnt work.
somebody can give a help on this....
 
Er... there I see only IFRAME that points to ads.htm.

It is actually 100% high, but relative to browser's (client area) height. Upper ad (generated by show_ads.js) moves IFRAME down and vertical scrollbar appears.
 
Come on...!
Dont you see that the iframe isnt showing 100% ?
It doesnt show the complete page INSIDE the iframe....AND MEANS the 100% DOESNT work !
I need a solution to whats wrtong and how to solve it...
 
Lemme be logical... IFRAME height=100% doesn't mean "show me all 100% of page". Percentage dimensions are relative to parent element. In this page parent element is BODY, ergo IFRAME height=100% says "let IFRAME be high as 100% of BODY".

IMO there are no HTML/CSS properties to auto-fit IFRAME, and with Javascript there are security and cross-browser issues. Why not using FRAMESET/FRAME tags? Or PHP/ASP/whatever to compose entire page without frames?
 
It works for me - the iframe is 100% of the available client screen height. The only proble I can see is that you've turned the scrolling off so there's no method to see all of the content. As the browser size is changed, so does your iframe size.

The key is "available client screen height". If I open my browser full screen at 1024x768 resolution, then there's about 590px of available verticla screen real estate. This will change for each browser, user preference, and resolution.

There's always a better way. The fun is trying to find it!
 
well ive set it to 4000 so to bad if there isnt a good alternative for it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top