IFRAME troubles...

Having troubles with the IFRAME object...two problems, actually.<br />
<br />
<iframe align="middle" frameBorder="0" height="100%" marginHeight="0" marginWidth="0" name="b閶巠" scrolling="auto" src=http://www.webdeveloper.com/forum/archive/index.php/"home.html" width="100%"><iframe><br />
<br />
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.<br />
<br />
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.<br />
<br />
Any ideas folks?<br />
<br />
Thanx.<!--content-->For the first part of your code..lookat MSN documentations on iframe doc..to see if it was recognised with the versions in question.<br />
second part of the code...make your alignments in the <br />
home.html<br />
<br />
and iframe will display them as the document is styled.<!--content-->I checked with M$'s specifications on the IFRAME object and found that it is set properly.<br />
<br />
<iframe {parameters}></iframe><br />
parameters: align, frameBorder, frameSpacing, height, hspace, longDesc, marginHeight, marginWidth, name, noResize, scrolling, src, tabIndex, vspace, width<br />
<br />
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.<br />
<br />
Any other ideas?<br />
<br />
Thanx again.<!--content-->post a link to the page in question.Where some one can take a look at the working example to see whats happening.<!--content-->http://snow.prohosting.com/stmasi<br />
<br />
Try to ignore the stupid banner ads.<br />
<br />
Thanx again.<!--content-->Ignore the last reply.<br />
<br />
Use this address instead.<br />
<br />
No pesky banner crap.<br />
<br />
<!-- m --><a class="postlink" href="http://home.bendcable.com/theallensplace/">http://home.bendcable.com/theallensplace/</a><!-- m --><!--content-->I checked with both NS6+ and IE6+ al the contents of the iframe are centered<br />
however the iframeitself is aligned left in IE and centered in IE6....<!--content-->Right.<br />
<br />
However, I tested in IE6, NS7, O7, and M131 and I get the following results:<br />
<br />
IE6 - Looks as close to what I want it to<br />
NS7 - IFRAME doesn't expand to fit the browser window<br />
O7 - Closer than N7 and M131<br />
M131 - About the same as NS7<br />
<br />
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.<br />
<br />
hehehe<br />
<br />
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?<br />
<br />
Thanx.<!--content-->Most interesting...<br />
<br />
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.<br />
<br />
Hmmm...<br />
<br />
Is it really worth all the headache to standardize?<br />
<br />
I think not.<!--content-->
 
Back
Top