[Seaside] Newbie Seaside and CSS question

Brad Fuller brad at sonaural.com
Wed Feb 22 01:25:35 UTC 2006


Brad Fuller wrote:
> I have a very basic question:
>
> I have set up a #style method containing CSS. I want to put text on the
> page in the style of h1 in a div called "header"
> The header component  (below, a white rect with a line on the bottom)
> renders fine.
> The heading level 1 renders fine too.
>
> html divNamed:  was tried -- but it places the header text above
> (outside) the header rect component.
>
> How can I place a header: level: 1 inside the "header" component?
>   
Well... it appears I was on the right track, just didn't pass a block to
it. This worked:

html divNamed: 'header' with: [html heading: self mainHeader level: 1].

(I found the answer in Lukas's site in his 6 tutorial. Thanks Lukas!)

I think I'll hit more on how to use CSS and Seaside. So, if anyone knows
a better way or other ways, I'm all ears!

thanks,

brad


More information about the Seaside mailing list