CSS Files

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Z3RO21
Forum Contributor
Posts: 130
Joined: Thu Aug 17, 2006 8:59 am

CSS Files

Post by Z3RO21 »

I have a system that builds a site from series of templates. Each template has multiple color schemes that go along with them. Would it be logical to separate layout (position, padding, margins) and design (color, font, behavior) into separate files? Or should I use a dynamic CSS parser and pull it from a database?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

I'd leave the CSS for each template un-parsed in separate files - you can then use @import to include each of them from your main HTML file. Tis way, caching will work as expected, and it will be a clean separation.
Z3RO21
Forum Contributor
Posts: 130
Joined: Thu Aug 17, 2006 8:59 am

Post by Z3RO21 »

Kieran Huggins wrote:I'd leave the CSS for each template un-parsed in separate files - you can then use @import to include each of them from your main HTML file. Tis way, caching will work as expected, and it will be a clean separation.
Thanks!
Post Reply