[Seaside] Indenting elements in select list

Jason Rogers jacaetevha at gmail.com
Tue Feb 1 18:24:07 CET 2005


Have you tried using styles?

Something like:
li > ol#indent1 {
    padding-left: 5px;
}
li > ol#indent2 {
    padding-left: 15px;
}
...


If you aren't completely familiar with CSS you can experiment with
rules at http://penguin.theopalgroup.com/cgi-bin/css3explainer/selectoracle.py
which will "explain" the magic of any CSS you enter.

On Tue, 1 Feb 2005 15:01:15 +0100, David Röthlisberger
<davidroe at bluewin.ch> wrote:
> Hello,
> 
> I have a really odd question. ;)
> 
> I would like to fill a select list with elements, and some elements should
> be indented.
> 
> E.g.:
> element1
>   element2
>     element3
> 
> I can't prepend a white space to the strings, because this won't be
> displayed in the select list, instead I have to put some &nbsp;'s before the
> strings. But Seaside will transform &nbsp; to &amp;nbsp, which is then
> displayed in the select list as &nsbp;element2.
> 
> What I have tried next is the following:
> (WAHtmlBuilder encode: '&nbsp'), aString
> for a string that shall be indented in the select list.
> But here I get the same problem as when I manually add '&nbsp;':
> '&nbsp;', aString
> 
> I have now changed the HtmlCharacters to not transform the ampersand
> anymore, but this solution is bad, so I'm wondering what is the correct
> solution for this problem?
> I'm aware that there is WAHtmlBuilder>>html: aString, but that doesn't help
> in this case.
> 
> Kind regards,
> David
> 
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
> 


-- 
Jason Rogers

"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."
    Galatians 2:20


More information about the Seaside mailing list