Ok, but we need to add a DIV() Richard
On Fri, Mar 2, 2012 at 12:51 PM, Bruno Rocha <rochacbr...@gmail.com> wrote: > > > On Fri, Mar 2, 2012 at 2:44 PM, Richard Vézina < > ml.richard.vez...@gmail.com> wrote: > >> *return DIV.xml(self) + DIV(DIV(self.errors[name], _class='error',* >> * errors=None, _id='%s__error' % name, _style='display: >> inline-block;'),_style='display: block;').xml()* >> > > > Just give it classes and set the style in css. > > > > *return DIV.xml(self) + DIV(DIV(self.errors[name], _class='error',* > * errors=None, _id='%s__error' % > name),_class='error_wrapper').xml() > > error_wrapper {display: block;} > error {display: inline-block;} > * > > > -- > > Bruno Rocha > [http://rochacbruno.com.br] > >