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...
>
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
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) )
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
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(' ')
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?
6 matches
Mail list logo