[Seaside] Re: Print and Screen CSS
jacaetevha at gmail.com
Tue Jan 18 23:44:51 CET 2005
On Tue, 18 Jan 2005 17:24:49 -0500, Yanni Chiu <yanni at rogers.com> wrote:
> Jason Rogers wrote:
> > I would like to define a separate CSS for printing and display. In
> > static pages I would do something like:
> > <link rel="stylesheet" type="text/css" href="screen.css" media="screen" />
> > <link rel="stylesheet" type="text/css" href="print.css" media="print" />
> html attributes
> at: 'rel' put: 'alternate stylesheet';
> at: 'type' put: 'text/css';
> at: 'title' put: styleName;
> at: 'href' put: '/css/', cssName, '.css'.
> html headTag: 'link'
> But, I had to override #renderContentOn: to add the above code,
> before invoking "super renderContentOn:", otherwise the link tag
> won't appear in the <head> section. (Seaside 2.3 version, by the way.)
> Notice these are static CSS files. I don't know how you'd get
> Seaside to output multiple sets of dynamically generated styles.
> HTH. --yanni
Where is it looking for those files? In the image directory?
"I am crucified with Christ: nevertheless I live; yet not I,
but Christ liveth in me: and the life which I now live in
the flesh I live by the faith of the Son of God, who loved
me, and gave himself for me."
More information about the Seaside