This would seem to be one of the easiest chops in HTML these days, but after reviewing my off-the-shelf resources and a couple hours of googling, I still don't know how to specify a URL for the contents of a <div> area.
Is it even possible to call an .htm file to fill in a <div> area? If so, how?No, it's not possible. Well, not unless there's a serverside include inside the div. You call htm into an frame or an iframe.Hmmm ... so I was suspecting. Maybe that's why php and ASP is now so common.
With an Iframe, I've not found a way for it to force other elements out of the way, either.
I could always scroll the Iframe, but would rather render the entire contents of a .htm file then have a relatively positioned copyright/contact/navigation element appear at the end.What do you mean "force out of the way"? It's an element like any other. It'll behave like any other in the normal flow of the doc.When I created an Iframe and didn't specify height, it defaulted to a few lines in height. If I specify a height, it will not always conform to the size of the .htm document I want to contain in the Iframe.
Part of the problem might be that the text I'm working with is inside a table anyway. Is it possible for <td> to contain an Iframe and to conform to whatever size the Iframe becomes?
And is it possible for an to Iframe conform to whatever size might be the document it loads, or must it be specified as either a fixed size or a percentage of the window?It was as easy as renaming my page from "mysite.com/whateverbeta.html" to "mysite.com/whateverbeta.php" then using:
<div width="550px"><?php include("mycontent.htm");?></div>
... which I derived from instructions at:
<!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/showthread.php?t=67553">http://www.webdeveloper.com/forum/showt ... hp?t=67553</a><!-- m -->
Your replies were helpful in that you let me know I was barking up the wrong tree. Fortunately, my site host has support for php. I might never again name a page .html!
The goal, if you wonder, is of course to start separating content from layout, so I can hand content management over to less skilled (ahem ... me? skilled?) persons.You separate content from layout by defining the content using HTML and puting the layout into an external stylesheet.
Is it even possible to call an .htm file to fill in a <div> area? If so, how?No, it's not possible. Well, not unless there's a serverside include inside the div. You call htm into an frame or an iframe.Hmmm ... so I was suspecting. Maybe that's why php and ASP is now so common.
With an Iframe, I've not found a way for it to force other elements out of the way, either.
I could always scroll the Iframe, but would rather render the entire contents of a .htm file then have a relatively positioned copyright/contact/navigation element appear at the end.What do you mean "force out of the way"? It's an element like any other. It'll behave like any other in the normal flow of the doc.When I created an Iframe and didn't specify height, it defaulted to a few lines in height. If I specify a height, it will not always conform to the size of the .htm document I want to contain in the Iframe.
Part of the problem might be that the text I'm working with is inside a table anyway. Is it possible for <td> to contain an Iframe and to conform to whatever size the Iframe becomes?
And is it possible for an to Iframe conform to whatever size might be the document it loads, or must it be specified as either a fixed size or a percentage of the window?It was as easy as renaming my page from "mysite.com/whateverbeta.html" to "mysite.com/whateverbeta.php" then using:
<div width="550px"><?php include("mycontent.htm");?></div>
... which I derived from instructions at:
<!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/showthread.php?t=67553">http://www.webdeveloper.com/forum/showt ... hp?t=67553</a><!-- m -->
Your replies were helpful in that you let me know I was barking up the wrong tree. Fortunately, my site host has support for php. I might never again name a page .html!
The goal, if you wonder, is of course to start separating content from layout, so I can hand content management over to less skilled (ahem ... me? skilled?) persons.You separate content from layout by defining the content using HTML and puting the layout into an external stylesheet.