Annet, allow me a little explanation on why you got SyntaxError: keyword can't be an expression. web2py does not know that you are using CSS inside HTML, the error happens because IMG is expecting named arguments, which are dictionary keys and those keys must be valid hashable ids.
_src is a valid hashable id. _vertical-align is not, because python will try to interpret that as the following expression: _vertical (an id) minus (math operator) align (another id). Hope this helps. On Nov 10, 7:00 am, Martín Mulone <[email protected]> wrote: > Like bruno said, there are no attribute vertical-align in img object, this > is css style thing > > 2010/11/10 Bruno Rocha <[email protected]> > > > > > This is working for me: > > > {{=IMG(_src=URL(r=request,a='base',c='static',f='base/card/logos/%s' % > > logo[0].link), _style="vertical-align:'middle';")}} > > > 2010/11/10 annet <[email protected]> > > > Massimo, > > >> Thanks, problem solved. However, this: > > >> {{=IMG(_src=URL(r=request,a='base',c='static',f='base/card/logos/%s' % > >> logo[0].link), _vertical-align="middle")}} > > >> .. result in a SyntaxError: keyword can't be an expression > > >> According to W3C I should be able to set vertical-align on an img. > > >> Kind regards, > > >> Annet. > > > -- > > >http://rochacbruno.com.br > > -- > My blog:http://martin.tecnodoc.com.ar > My portfolio *spanish*:http://www.tecnodoc.com.ar > Checkout my last proyect instant-press:http://www.instant2press.com

