Forum Moderators: not2easy
When you call to an external stylesheet, you (or at least, I) use the command:
<link rel="stylesheet" href=".../stylesheet.css" type="text/css">
which tells the web page to open stylesheet.css and read the contents. Of course, this is placed in the html above the body of the document.
However, is it possible to use a similar command to instruct a web page to open a file, and import its contents into the body of that page? For instance, the page I have in mind would read:
<html>
<head>
<title>Title</title><link rel="stylesheet" href=".../stylesheet.css" type="text/css">
<style type="text/css">
</style>
</head><BODY>
<MAGICAL LINKING CODE TO layout.html>
<div class="rightframe">
TEXT IN HERE
</div></body>
</html>
where layout.html reads:
<div class="mainimage">
<img src="../images/ccpheader.jpg" width="1005">
</div><div class="leftframe">
<iframe src="../links.html" frameborder="0" name="leftframe" width="170"
height="700"></iframe>
</div>
where <MAGICAL LINKING CODE TO layout.html> would be put on every page, similar to a stylesheet (in which the three divs would be created, etc.). It's essentially just trying to save copying and pasting the contents of layout.html into every page, which would be annoying if, for instance, the width of mainimage had to be changed.
Any thoughts? Hope this is clear.
You can either setup your authoring tool to treat this standard code as a lump, or use Server Side Includes (SSI) to compile pages on the server. See How to Generate Footer Text Message for all pages? [webmasterworld.com] for a good discussion.
Back to the drawing board...