Are there any other ways to dynamically apply CSS styling to a page (without
using inline CSS)?
I'm sure I could dynamically generate a new and uniquely named CSS file "on
the fly" when users log in, and then dynamically associate that css file
with the requested pages - but I'm looking for something much simpler and
with better runtime performance.
Here's what I'm after. I plan to let users save various preferences between
sessions. Behind the scenes I save this information with their account data
in a database. Some of these preferences include page background color and
font size - which I want to apply to their pages at runtime via CSS. There
will also be a couple of css classes to be applied to various elements in
the page.
I'm already storing all of the css settings and classes in the database, and
I'd like to leverage it all from there if possible.
Any suggestions for accomplishing this?
Thanks!