CSS footer, how to do include so same on every page?
I have a website that is using CSS. I have a footer defined.
I want the footer to be the same on every page. Have the same content.
Is there a way to do some sort of include so I only have to modify one file if I want to change it?
Thanks
The Webmistress posted this at 17:00 — 1st July 2003.
She has: 5,586 posts
Joined: Feb 2001
You can't do it with CSS as that's just for presentation styles, you would need to use SSI (server side includes). Do a search on these forums for SSI and you find loads of info
Julia - if life was meant to be easy Michael Angelo would have painted the floor....
Renegade posted this at 08:20 — 2nd July 2003.
He has: 3,022 posts
Joined: Oct 2002
Or if you can't use SSIs then you can use javascript. Just include the file in place that you want it and it will show. However, use that as your last resort because the downside to that is that, prople who disable javascripts will not be able to see it.
If you want it then I can tell you how to do it.
Brooke posted this at 21:48 — 9th July 2003.
She has: 681 posts
Joined: Feb 1999
I have used SSI's in many of my sites for the exact same reason. They can be headers, footers, nav, or all three if you want! Very powerful.
andy206uk posted this at 16:31 — 11th July 2003.
He has: 1,758 posts
Joined: Jul 2002
or of course... if you have PHP available on your site you can make all your pages .php and use
<?php
include("_footer.php");
?>
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.