Content in CSS file?
Posted: 18 September 2008 03:14 AM   [ Ignore ]
Newbie
Rank
Total Posts:  4
Joined  2008-09-18

Still greenish in CSS but I’m wondering one thing here. If I have many pages that look exactly the same (except for they all have different images) and they all work from the same CSS can I put any content into the CSS? What I’m thinking is that each page will have some contact info that will be the same. In the future, if that info changes, will I need to go back and change each page or is there a way to set it up using CSS or any other method?

Profile
 
 
Posted: 18 September 2008 06:04 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  8
Joined  2008-07-16

Well.. usually the “repeating” content is your header/footer/sidebars.. so just separate them in header.php, footer.php, sidebar.php and include those files and then you’ll only have to change header.php and the changes will reflect all the pages..

Of course, if your website is with static HTML pages and you can’t use a scripting language like PHP/ASP and so on.. there are 2 other options:

- dreamweaver supports templating of the static files
- HTML itself supports simple templating

with CSS it won’t work.. Yes, CSS3 supports content but not in that aspect :)

Regards

Profile
 
 
Posted: 23 September 2008 04:10 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  4
Joined  2008-09-18

SteeleR, thank you!

Profile