Re: [web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread Thadeus Burgess
Also, you can use the css rules to accomplish the same. text-align: center; width: 150px; height: 100px; padding-top: 40px; -- Thadeus >> > > On May 30, 11:32 am, NetAdmin wrote: >> > > > It would be nice to have a non-breaking space html-helper that uses >> > > > the following syntax... >

[web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread NetAdmin
Your solution is much cleaner! Looks like I better start learning CSS and jQuery! Thanks Again! On May 30, 2:46 pm, mdipierro wrote: > response.flash = DIV('Center This',_style='padding: 100px 50px 100px > 50px;') > > On May 30, 1:12 pm, Mr admin wrote: > > > Here's an example if what I'm tryi

[web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread NetAdmin
Thank worked! == controller = def NBSP(n=1) : # # produce non-breaking spaces # return XML(' ' * n) = view === if form.accepts(request.vars, session): response.flash = TABLE(TR(' '),TR(' '),TR(' '), TR( NBSP(15) , 'Center', NBSP(15) )

[web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread mdipierro
response.flash = DIV('Center This',_style='padding: 100px 50px 100px 50px;') On May 30, 1:12 pm, Mr admin wrote: > Here's an example if what I'm trying to do with NBSP()   -- Make a BIG > eye-catching response.flash  without using the dashes.. > > See attached file. > >   if form.accepts(requ

Re: [web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread Mr admin
Here's an example if what I'm trying to do with NBSP() -- Make a BIG eye-catching response.flash without using the dashes.. See attached file. if form.accepts(request.vars, session): response.flash = TABLE(TR(' '),TR(' '),TR(' '), TR(' Center This ') , TR(' ')

[web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread mdipierro
I'd rather avoid to pollute the name space too much. You can do def NBSP(n=1): return XML(' '*n) On May 30, 11:32 am, NetAdmin wrote: > It would be nice to have a non-breaking space html-helper that uses > the following syntax... > > NBSP(),  or NBSP(5) > > Any Takers?