I'm working on a web application that makes heavy use of CSS, but I
would like users to have a degree of control over some of the classes
and attributes. To accomplish this, I want to store my CSS classes in a
SQL database.
The only problem is, I'm having a heck of a time trying to design the
database tables in a normalized way. I have searched high and low for
examples of CSS entity-relationship diagrams--to no avail.
Has anyone here done something similar, and if so, do you have an
example I can borrow? I feel like I'm reinventing the wheel every time
I take a stab at this, and it is difficult trying to visualize how to
separate the tables. It also seems like it is going to be a ton of
work. For example, I am starting to think there will be no end to the
number of tables I'll need: CssColors, CssAlignments, CssFontStyles,
CssFontFamilies , CssBorderStyles , etc.
Help!
would like users to have a degree of control over some of the classes
and attributes. To accomplish this, I want to store my CSS classes in a
SQL database.
The only problem is, I'm having a heck of a time trying to design the
database tables in a normalized way. I have searched high and low for
examples of CSS entity-relationship diagrams--to no avail.
Has anyone here done something similar, and if so, do you have an
example I can borrow? I feel like I'm reinventing the wheel every time
I take a stab at this, and it is difficult trying to visualize how to
separate the tables. It also seems like it is going to be a ton of
work. For example, I am starting to think there will be no end to the
number of tables I'll need: CssColors, CssAlignments, CssFontStyles,
CssFontFamilies , CssBorderStyles , etc.
Help!
Comment