PDA

View Full Version : css?



Nicholaswhite
May 19th, 2001, 13:01
With my website, I'd like to have some sort of template that includes the layout along with all of the links. So when I create a new link, I really can't be bothered to go through each and every page and update that link. I've heard that "cascading style sheets" can do this, is it possible?

What is php?

Gonzo
May 19th, 2001, 13:18
that can be done using php.
your server needs to have php installed for it to work.
where ever you want you links to show up just place this


<?php include "links.txt"; ?>

and place your html for links in the file called links.txt

Nicholaswhite
May 19th, 2001, 13:20
Thanks Gonzo.

What would be ideal for having a uniform table layout?

keith
May 19th, 2001, 14:22
that's not really css. it's usually done through server side scripting called ssi [server side includes].

if supported by your host, just name your pages with a .shtml extension. then call the menu or navigation or whatever like this:



header.shtml file example:



<html>
<head>
<title></title>
</head>

<body>




footer.shtml file example:



</body>
</html>




every other file:



<!--#include virtual="/header.shtml" -->

<!-- normal html code - page's content -->

<!--#include virtual="/footer.shtml" -->