[web2py] Re: Setting class for MENU helper

2012-12-02 Thread Calycé
Thanks for your tip On Sunday, December 2, 2012 4:19:30 PM UTC+1, Paolo Caruccio wrote: > > You could use also css3 selector :last-child (ie<9 and safari<3.2 doesn't > support it) > > For example, in your css file add: > > .menu ul li:last-child /*in this way ul.menu direct children are > bypa

[web2py] Re: Setting class for MENU helper

2012-12-02 Thread Calycé
I opened issue 1200 and attached a possible (quick and dirty) patch. http://code.google.com/p/web2py/issues/detail?id=1200 On Sunday, December 2, 2012 2:47:40 PM UTC+1, Massimo Di Pierro wrote: > > You have to use jquery. I would take a MANU patch to deal with this case. > > On Sunday, 2 Decemb

[web2py] Re: Setting class for MENU helper

2012-12-02 Thread Paolo Caruccio
You could use also css3 selector :last-child (ie<9 and safari<3.2 doesn't support it) For example, in your css file add: .menu ul li:last-child /*in this way ul.menu direct children are bypassed*/ {/* apply your rules, for example: */ color: red; background-color: yellow; } Il giorno dom

[web2py] Re: Setting class for MENU helper

2012-12-02 Thread Massimo Di Pierro
You have to use jquery. I would take a MANU patch to deal with this case. On Sunday, 2 December 2012 04:18:51 UTC-6, Calycé wrote: > > Hi all, > > I'm rendering a menu with the following line of code: > > > Menu > {{=MENU (response >