CSS footer, how to do include so same on every page?

They have: 21 posts

Joined: Mar 2001

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's picture

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 Smiling

Julia - if life was meant to be easy Michael Angelo would have painted the floor....

Renegade's picture

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. Laughing out loud

Brooke's picture

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.

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.