calling css from external files

liunx

Guest
Hi,

I have several html files calling menu.css which defines the menu:

<link href=http://www.webdeveloper.com/forum/archive/index.php/"menu.css" rel="stylesheet" type="text/css">

In the html files i have the div which contains the menu itself:

<div id="navcontainer">
<ul id="navlist">
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"item1.htm" title="item1">menu item1</a></li>
</ul>
</div>

So i'm wondering if there's a way to place the div itself on an external file, and have the html files calling it.

This would prevent having to update all the html files should there be any changes on the menu items, allowing me to change only the external file.


thx in advance,
cogumeloNot with CSS you need a server-side script, e.g. PHP since HTML is static.just what i thought :(

thanx for the quick reply.You can do this with SSI (Server Side Includes).
But, only if your host server supports it.
 
Back
Top