Forum Moderators: open

Message Too Old, No Replies

Creating Footers

without using tfoot

         

Miraenda

8:54 pm on Jul 20, 2003 (gmt 0)

10+ Year Member



This might seem like a silly question, but is there a footer attribute like the head attribute for creating footers, or is tfoot the only attribute available for footer creation? I have been searching my references and online, but I can't find anything but tfoot for footers. I really don't want to create a table footer since my site uses CSS, but I would like a footer at the bottom of my page for my graphical navigation buttons at the top. Although several past posts mention footers, they never seem to give the code for a footer (that I could find anyway). On a final note, if there isn't a footer attribute, can anyone explain why not? After all, there is a head and a body, so a footer/foot attribute seems to make sense, too.

And, please forgive the simplicity of my questions since I am pretty new to web development and still have a long way to go in figuring stuff out.

Thanks,
Mira

birdstuff

9:09 pm on Jul 20, 2003 (gmt 0)

10+ Year Member



I use a small HTML file for my footer and use SSI to attach it to the bottom of every page. Not sure if this is what you have in mind though...

mossimo

2:33 am on Jul 21, 2003 (gmt 0)

10+ Year Member



Hi Miraenda

There is no "HTML" tag for footer. The footer as you probably know is just the stuff at the bottom of the page IE: links, copyright, contact info ect... If your server supports ASP or PHP you can call an include (SSI) file to include the footer on every page.

Let us know if your server supports (SSI) so we can give you some ideas.

Miraenda

4:23 am on Jul 21, 2003 (gmt 0)

10+ Year Member



Thanks Mossimo. Yes, my server supports PHP, ASP, and SSI, although I have never used any of them before. Actually, I even pay an extra dollar each month for the ASP, so I should try to put it to use sometime soon...

choster

4:45 am on Jul 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To clarify, the <head> block is for information about the document ("meta-information") such as its language and character encoding, author, and imported styles and scripts. It is not for headers-- the code for the header should be part of the <body>-- and in fact, <head> should not contain any content markup at all save the <title> which is typically rendered as the title of the browser window.

mossimo

5:04 am on Jul 21, 2003 (gmt 0)

10+ Year Member



An extra dollar each month is a real bargain.
Hears a simple footer that can be added to the bottom of your pages. The idea is simple you have a single file (in this example the file is just a text file) that is called using

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

I use .inc for includes but you can use anything you want.

Fotter.inc looks like this:

<table width="100%" border="0" align="center">
<tr>
<td width="100%" height="19" align="center" valign="top">
<a href="http://www.mysite.com/default.asp" title="home">Home</a>&nbsp;&nbsp;&nbsp;
<a href="http://www.mysite.com/links.asp" title="links">Links</a>&nbsp;&nbsp;&nbsp;
<a href="http://www.mysite.com/act.asp" title="account info">Account Info </a>&nbsp;&nbsp;&nbsp;
<a href="http://www.mysite.com/contact.asp" title="Contact">Contact Us</a>&nbsp;&nbsp;&nbsp;
<a href="http://www.mysite.com/policys.asp" title="policys">Policys</a>&nbsp;&nbsp;&nbsp;
<a href="http://www.mysite.com/default.asp" title="Current News">News</a>
</td>
<tr>
<td height="19" colspan="2" align="center" valign="top">&copy;2003 MyCompany</td>
</tr>
</table>

Remember to give your page a .ASP extension or it will not work.
I hope that helps let me know.