[HTML] iframe .. 100%?

This works for me with css:
Code:
.iframe {
width:100%; /* or whatever */
min-height: 100%;
height:auto !important; /* for modern browsers */
height:100%; /* for IE */
}

EDIT: i winwin from elite
 
I'm guess your problem has been resolved?

He just added

PHP:
<IFRAME SRC="forum/index.php" frameborder="0" HEIGHT=1200 WIDTH=868>
You cannot view frames, please get a new browser. Try using Mozilla Firefox, or Internet Explorer.
</IFRAME>
 
I'm guess your problem has been resolved?

He just added

PHP:
<IFRAME SRC="forum/index.php" frameborder="0" HEIGHT=1200 WIDTH=868>
You cannot view frames, please get a new browser. Try using Mozilla Firefox, or Internet Explorer.
</IFRAME>
Not every monitor is 1200x868 so it would show up good on the person who made the sites computer but for alot of other people it would look all over the place.
 
browsers load the body object and size the body object differently. In any gecko or mozilla based browser, the body object's height is only as big as the content requires it to be.

You'll have to tell the browser to make the body object the same height as the inner height of the client BEFORE you put the height for the iframe, this can either be done in HTML or CSS, but regardless of which you use, you have to make sure body height is specified BEFORE iframe height or it wont work in all browsers.
 
Never use like this: height=1200, you should put: height=1200px, you should put the unit unless it is 0(which mean 0 in any unit).
To use div, you can use ajax, its not that hard and looks good. I also have a script that resizes the iframe according to the iframe containt, so if you click a link that resizes content to a small size, it resizes the iframe too.(the script is simple to "install", if you dont want to learn ajax and modify almost all your files, it would be the best).
Which one you like? Ajax or iframe with the resize thing?
 
In CSS, use <nr>px. In a normal HTML tag, height=1200 is fine. height=1200px is wrong for that.

Well, I always use like this: widht="800px", the quotes to keep things separated and px because you can also put % so it doesnt confuse me. But anyways, thats not the discussion here :]
 
Back