PDA

View Full Version : CSS Add text to every page



henry715
April 20th, 2010, 09:12 AM
Is there a way to add text to my all of my pages using CSS? I would like to have a footer with a link and a copyright. Is there a way to set it up so I only have to make the change in the css code and it will update all of my other pages?

This may have been asked before, but I couldn't find it. Looking around on different sites, I have only one similar response, but it said that this could be done in some browsers, but not in IE....this post was in 2005 though. Has anything changed since then? Thanks for the help.

n000bie
April 21st, 2010, 12:35 AM
It will be better if you create a include file (if you are using server side scripting language), this way 1 file can be used on many pages.

CSS has the property content but I haven't seen it used by anyone.

Swooter
April 21st, 2010, 02:08 AM
Yes, server-side includes may be the best solution. Alternatively you could use frames or xmlHttpRequest (Ajax)