[Seaside] body tag attributes

Julian Fitzell julian at beta4.com
Wed Mar 19 22:49:36 CET 2003


Nevin Pratt wrote:
> 
> 
> Avi Bryant wrote:
> 
>>  
>>
>>
>> Does this work for you?
>>
>> style
>>  ^ 'body { background-image: url(/images/background.jpg) } '
>>
>> Avi
>>
>>
>>  
>>
> 
> Yes.  So, the #style method for a custom subclass of WAComponent can 
> contain any CSS style declaration?
> 
> Fascinating.

Yes, though obviously the styles from all components on the page get 
combined so you could find your style being overridden by another 
component after you or within you on the page.

If this is a concern you'd need to assign a CSS class to the top level 
tag of your component or something so you can set all your CSS 
definitions within that class.

Julian


-- 
julian at beta4.com
Beta4 Productions (http://www.beta4.com)



More information about the Seaside mailing list