[Seaside] #styleLinkWithUrl:
David Röthlisberger
davidroe at bluewin.ch
Sat Oct 16 20:47:03 CEST 2004
> updateRoot: anHtmlRoot
> |attr|
> attr := WAHtmlAttributes new.
> attr at: 'rel' put: 'Stylesheet'.
> attr at: 'href' put: 'http://some.server/css/common.css'.
> attr at: 'type' put: 'text/css'.
> attr at: 'media' put: 'screen'.
> anHtmlRoot add: (WAHtmlElement named: 'link' attributes: attr)
okay, that works, thanks.
> But then I found it easier to use the WAStyleLibrary stuff, so I
> subclassed it and put my CSS in methods of that class, and then configured
> it into the application using the config page.
yes, the new StyleLibrary is really cool, I think I should throw away my CSS
files and use these libraries instead. :)
bye,
David
More information about the Seaside
mailing list