[Seaside] CSS dynamically manipulated
Avi Bryant
avi at dabbledb.com
Fri May 25 17:13:10 UTC 2007
On 5/25/07, Sebastian Sastre <ssastre at seaswork.com> wrote:
> Right, but when visual posibilities has a big combinatorial then you can use
> the states and the dinamyc css classes's values as multiplication factors.
> This is not so crazy, take 6 font sizes by 6 colors, that's 36 you can still
> using static css, but that goes to 216 if you allow the user to choose also
> between 6 fonts.
>
> So I wonder for a convenient way to manage dynamic CSS
But you can use multiple classes on a given element - so have one set
of classes for font sizes, one for colors, one for fonts, and then
change which three classes the element has when you render it.
html div
class: self fontClass;
class: self colorClass;
class: self fontSizeClass;
with: 'Hello World'
More information about the seaside
mailing list