css - adding html code to the base of each page

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Thu Jan 22, 2004 6:41 pm    Post subject: css - adding html code to the base of each page Reply with quote

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 ©&nbsp;2003-2004 olly86</p>


if, yes can you explain how I could do this thanks.
_________________
Olly
Back to top View user's profile Send private message
mcwilliams132
-


Joined: 27 Jul 2003
Posts: 167
Location: Oshkosh, WI

PostPosted: Thu Jan 22, 2004 7:29 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Jan 25, 2004 4:32 pm    Post subject: Re: css - adding html code to the base of each page Reply with quote

olly86,

You must use SSI.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Sun Jan 25, 2004 4:46 pm    Post subject: Re: css - adding html code to the base of each page Reply with quote

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 View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sun Jan 25, 2004 6:00 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group