View previous topic :: View next topic |
Author |
Message |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Thu Jan 22, 2004 6:41 pm Post subject: css - adding html code to the base of each page |
|
|
I?ve just started using css documents and I was wondering if I can I insert the following HTML code to the bottom of each page using a css document?
Quote: | <hr><a href="http://validator.w3.org/check/referer"><img border="0"
src="http://www.w3.org/Icons/valid-html401.png"
alt="Valid HTML 4.01!" height="31" width="88" align="right"></a>
<p>copyright © 2003-2004 olly86</p> |
if, yes can you explain how I could do this thanks. _________________ Olly |
|
Back to top |
|
 |
mcwilliams132 -
Joined: 27 Jul 2003 Posts: 167 Location: Oshkosh, WI
|
Posted: Thu Jan 22, 2004 7:29 pm Post subject: |
|
|
This has NOTHING to do with CSS...CSS is used for presentation and layout...not data.
CSS is used for possitioning elements, styling fonts, boxes, floating, etc...
What you want is an INCLUDE file to be added to every page that includes your footer information.
Depending on your setup, you can include files similar to this:
<!--#include file = "footer.html"-->
I say "depending on your setup" because you can do it different ways with different language packs...PHP, ASP (actually asp is the same way), Perl...
Hope that helps..but CSS doesn't do anything but style your page ... _________________ ::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jon-Paul LeClair
:: http://mcwilliamsworld.com
:: "Lobster sticks to magnet!" |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Jan 25, 2004 4:32 pm Post subject: Re: css - adding html code to the base of each page |
|
|
olly86,
You must use SSI. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Sun Jan 25, 2004 4:46 pm Post subject: Re: css - adding html code to the base of each page |
|
|
aprelium wrote: | olly86,
You must use SSI. | i use this script now:
Code: | <?php
//open text file
if ($fp = fopen("footer.txt", 'r')) {
while ( ! feof($fp)) {
$line = fgets($fp, 1024);
print "$line";
}
} else {
print "Couldn't open text file";
}
?> |
what's SSI? _________________ Olly |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sun Jan 25, 2004 6:00 pm Post subject: |
|
|
Server Side Includes! It makes it easier to include
long paragrahs in a text file without having to re
type it up , you can also do other things 8) |
|
Back to top |
|
 |
|