topr8 - 9:03 am on Oct 24, 2011 (gmt 0)
>>Oh, and bandwidth isn't exactly an issue, since the stylesheet is already there anyway. A few more bytes per visit, that's all. Definitely less bandwidth than having server-side php add the same text to every page
actually i take your point that the extra bandwidth is tiny, however by saving it wherever you can it does add up - assuming you serve a lot of pages or aspire to.
but actually using server side scripting would use less bandwidth not more.
(although it would take more processing power on the server - if we are being pinickity)
however the main point is that in actual fact the OP's question was wrong, if they want to easily change the date at the bottom of x pages, there are 2 better solutions:
1. if the site has ambition and is expected to expand a lot over time, then making the 'footer' some kind of include (there are many ways to do this) would make sense as ultimately as the site gets bigger server side scripting is going to become essential.
2. if the site is going to remain as plain html pages then, using a text editor to update every page on the site would make sense, most editors will be able to find and replace across a whole site/folder whatever.
i guess i'm just very old school and believe that it is best to keep it as simple as possible, why use css or js when actually it could just be changed in the page code and be done with it ... i like to leave the client (device) with as little to do as possible.