Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# leemhenson 2/2/2006 5:11 AM
Hi

I often split my CSS out into several different files (e.g. typography, header, footer, hacks, etc). It would be nice to be able to attach more than one CSS per template. Is this already on the list of future developments or should I look into doing it myself?

Cheers
L
# mgaerber 2/2/2006 9:46 AM
You could load other css files from a master css like:

@import url("layout.css");
@import url("header.css");
@import url("content.css");
@import url("menu.css");
@import url("mambo.css");
@import url("components.css");

if the files lie in the same directory
# martijnb 2/2/2006 10:30 AM
Good point!

Besides that, it shouldn't be too hard to define multiple css files with a template. Currently, you can add only one, but this can easily be changed to multiple.
The PageEngine already has all facilities to inject multiple css files with the RegisterStylesheet() method (currently to allow modules to add their own stylesheets/skins).
# leemhenson 2/2/2006 12:56 PM
Thanks. Heh, maybe I've been working too hard - that should've crossed my mind. :)