View Full Version : Text embedding in CSS?

05-02-2009, 09:10 PM
HI all!

I have a question, it might sound a bit silly but here goes:

I have a few .html pages and they include a sort of NEWS sections, so all these pages have the NEWS sections. I want to be able to update this div layer which includes the text so that i do it only ONCE and it automatically updates for all the pages. I know it possible server side [which im not good at] or basic php which can be done. But my question is, is it possible to actually have it sort of embedded in the css style sheet? Meaning the text is inside the css and i just change it to update it for all the pages.

Is it possible? If not could you guys help me with an easier solution? Im using dreamweaver! Thanx for the help! :thumbsup:

05-02-2009, 10:27 PM
I don't think CSS is what you're looking for. CSS styles things (as you probably know).

I had a similar post aboput this very thing the other day, and I think your three main options are Dreamweaver Templates (although I would not recommend this - it is the easiest), or a Server Side Include, or a PHP include.

Check this thread:
http://www.codingforums.com/showthread.php?t=165220 (http://www.codingforums.com/showthread.php?t=165220)