[Seaside] Support for CSS?

Avi Bryant avi@beta4.com
Thu, 25 Apr 2002 10:50:05 -0700 (PDT)


On Thu, 25 Apr 2002, Nevin Pratt wrote:

> So, does Seaside support CSS?  (either as an external file reference or
> inline)

Both work, in SSVS.  <link> works just like <image>, so you can put
external .css files wherever you're putting  your .jpgs, and inline style
blocks work mostly because of the same hack that messes up <body>, which
is that all of the head blocks from nested subcomponents are collected
into the top-level <head>.  This means that little widgets/subcomponents
can add their own <style> or <link> tags without too much trouble.

The other thing Seaside does to support it is automatically insert CSS id
attributes to match the sea:id attributes on dynamic tags, so <a
href="@foo"> becomes <a href="/some/generated/url" id="foo">.

This is all still definitely alpha code, so if you can bang on it a bit,
that's great.  It would be nice to get it cleaned up and release 0.93.

Cheers,
Avi