[Seaside] Manipulation of BODY tag

Brian Brown rbb at techgame.net
Sat Oct 18 02:44:12 CEST 2003


On Friday, Oct 17, 2003, at 17:10 America/Denver, Roger Whitney wrote:

> Jürgen,
> 	In case no one else has answered, yes you can do it. The code below 
> shows how to set the foo attribute of the BODY tag to bar. There may 
> be a better way, but I do not know it.
>

Well, you can certainly use css as well.... just create a method called 
"style" that returns a string which contains normal css.

style
    ^'
	body {
   		margins: 10px;
		font-family: sans-serif;
  	}'

You can also check out cssClass:, divNamed:, and cssId: for other CSS 
usage stuff.

Brian


> WAComponent-Subclass>>renderContentOn: html
> 	html document body attributeAt: 'foo' put: 'bar'.
>
> On Tuesday, October 14, 2003, at 01:27  PM, Juergen Buchner wrote:
>
>> Hello,
>>
>> is it possible to manipulate the attributes of the BODY tag e.g. 
>> setting
>> the ccs-class of it?
>>
>> Best regards
>>
>> Jürgen
>> _______________________________________________
>> Seaside mailing list
>> Seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/listinfo/seaside
>>
>>
>
> ----
> Roger Whitney              Department of Computer Science
> whitney at cs.sdsu.edu        San Diego State University
> http://www.eli.sdsu.edu/   San Diego, CA 92182-7720
> (619) 583-1978
> (619) 594-3535 (office)
> (619) 594-6746 (fax)
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside



More information about the Seaside mailing list