Header and footer in HTML [Solved/Closed]

JudySis - Jan 28, 2008 at 02:47 AM - Latest reply: brianwhitt77 343 Posts Thursday September 16, 2010Registration date November 19, 2011 Last seen
- Sep 17, 2010 at 07:26 AM
Hello,
Is it possible to include a header and footer file using HTML? I have my file (saved as a .html) and need to be able to include the HTML for the header and footer. Anyone know how I can do this?
Thanks a lot.
See more 

14 replies

Best answer
..how to set Header and footer in HTML with ex - Jul 14, 2008 at 05:18 AM
24
Thank you
how to set Header and footer in HTML with example

Thank you, ..how to set Header and footer in HTML with ex 24

Something to say? Add comment

CCM has helped 1912 users this month

give me the code for creating header and footer
<!-- IE in quirks mode -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<title>Fixed header and footer</title>
<style type="text/css">
body{
margin:0;
padding:header-<length> 0 footer-<length> 0;
}
div#header{
position:absolute;
top:0;
left:0;
width:100%;
height:header-<length>;
}
div#footer{
position:absolute;
bottom:0;
left:0;
width:100%;
height:footer-<length>;
}
@media screen{
body>div#header{
position:fixed;
}
body>div#footer{
position:fixed;
}
}
* html body{
overflow:hidden;
}
* html div#content{
height:100%;
overflow:auto;
}
</style>
<div id="header"> header </div>
<div id="footer"> footer </div>
<div id="content"> content </div>
Hi,

I tried this code, its working in IE but not workign in FireFox. Can you please give me the solution.

Thanks & Regards
shreek
shows header over content, could someone help me ?
excellent --- made my footer with this. Perfect and simple.
7
Thank you
You can use SSI (Server Side Includes) http://httpd.apache.org/docs/1.3/howto/ssi.html.html ... the best way would be to use a server side langage like PHP (simple and easy to learn)

<?php include "http://www.mydomain/header.php" ?>

<stong>MY HTML CODE IN THE MAIN CELL</strong>

<?php include "http://www.mydomain/footer.php" ?>
5
Thank you
hey, I am trying to design a logo with html and use it as a hesder for my web page. please show me both how to create the logo and code for inserting a header and a footer
use photoshop!
brianwhitt77 343 Posts Thursday September 16, 2010Registration date November 19, 2011 Last seen - Sep 17, 2010 at 07:26 AM
3
Thank you
Hello JudySis,

Please have clear information about the specific matter from the below address.

http://www.w3schools.com/html/html_tables.asp

Thank you.
0
Thank you
how to make a front page in html.