Page 1 of 1
CSS Files
Posted: Sun Feb 11, 2007 10:38 pm
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?
Posted: Mon Feb 12, 2007 3:18 am
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.
Posted: Mon Feb 12, 2007 6:19 am
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!