Click to See Complete Forum and Search --> : IFRAME troubles...


stmasi
06-09-2003, 11:45 AM
Having troubles with the IFRAME object...two problems, actually.

<iframe align="middle" frameBorder="0" height="100%" marginHeight="0" marginWidth="0" name="bädy" scrolling="auto" src="home.html" width="100%"><iframe>

First, I use javascript to set the size of the IFRAME according to the size of the user agent window. However, this only seems to display properly under IE ver 4.5 or later.

Second, I can't seem to make the IFRAME utilize it's own "centering" properties. All information within the IFRAME, both text and images, are justified top and left.

Any ideas folks?

Thanx.

Khalid Ali
06-09-2003, 12:10 PM
For the first part of your code..lookat MSN documentations on iframe doc..to see if it was recognised with the versions in question.
second part of the code...make your alignments in the
home.html

and iframe will display them as the document is styled.

stmasi
06-09-2003, 12:28 PM
I checked with M$'s specifications on the IFRAME object and found that it is set properly.

<iframe {parameters}></iframe>
parameters: align, frameBorder, frameSpacing, height, hspace, longDesc, marginHeight, marginWidth, name, noResize, scrolling, src, tabIndex, vspace, width

I already have the "home.html" page formatted using a CSS file to text-align: center; and vertical-align: middle;. It works fine if I just load it into a browser, but as soon as it's loaded into an IFRAME, it acts as if there are simply no references to any styles whatsoever...embedded or css links.

Any other ideas?

Thanx again.

Khalid Ali
06-09-2003, 12:52 PM
post a link to the page in question.Where some one can take a look at the working example to see whats happening.

stmasi
06-09-2003, 02:16 PM
http://snow.prohosting.com/stmasi

Try to ignore the stupid banner ads.

Thanx again.

stmasi
06-09-2003, 02:22 PM
Ignore the last reply.

Use this address instead.

No pesky banner crap.

http://home.bendcable.com/theallensplace/

Khalid Ali
06-09-2003, 03:57 PM
I checked with both NS6+ and IE6+ al the contents of the iframe are centered
however the iframeitself is aligned left in IE and centered in IE6....

stmasi
06-09-2003, 04:08 PM
Right.

However, I tested in IE6, NS7, O7, and M131 and I get the following results:

IE6 - Looks as close to what I want it to
NS7 - IFRAME doesn't expand to fit the browser window
O7 - Closer than N7 and M131
M131 - About the same as NS7

It seems as though (accessibility issues not withstanding) that cross-browser implementation was so much easier to accomplish when we didn't have to worry about standards.

hehehe

Anyway, I moved from the dreaded table-laid-out pages to css because I wanted to remain "current" with the trends, but if cross-browser "design" or "layout" (for lack of better terminology) is this time-consuming, how are we expected to keep up?

Thanx.

stmasi
06-09-2003, 05:21 PM
Most interesting...

When I revert back to my old designs (tables) the page displays absolutely perfectly in all the aforementioned browsers with not one single pixel out of place.

Hmmm...

Is it really worth all the headache to standardize?

I think not.