[web2py] Re: Basic question about CSS / Web2py !

2012-10-16 Thread Niphlod
I agree with Anthony. Edit that css and see for yourself how can you manage it. Most likely you want that label to go on more lines than one, so what you are searching for in that case is word wraphttp://www.css3.com/css-word-wrap/ On Tuesday, October 16, 2012 5:14:02 AM UTC+2, Anthony wrote:

[web2py] Re: Basic question about CSS / Web2py !

2012-10-16 Thread Don_X
word warp is exactly what I was hoping to do in the label declaration ! .. and Yes .. thank you Anthony, I was not sure ! .. you are right ! .. I had to try before I asked ! thanks weheh .. and thank you Niphlod .. you hit it right on the nail ! thank you every one it is very much

[web2py] Re: Basic question about CSS / Web2py !

2012-10-15 Thread weheh
Check the doc on Database Abstraction Level for the full signature of Field. The Field argument to db.define_table includes the label argument, and yes, you can do something like this: db.define_table('mytable', Field(myfield, label=T('mylabel'), ) On Tuesday, October 16, 2012

[web2py] Re: Basic question about CSS / Web2py !

2012-10-15 Thread Don_X
weheh ! Thank you for your response ... but this is not what I am looking for ! I know about what you suggested below .. this is how it is declared .. indeed ! Now ... Can the label argument take an HTML helper of somekind, so if the translation of 'mylabel' happens and it is too long of

[web2py] Re: Basic question about CSS / Web2py !

2012-10-15 Thread Anthony
Yes, the label can take an HTML helper -- but wouldn't it have been much faster and easier to just try that rather than post a question about it? ;-) On Monday, October 15, 2012 10:10:20 PM UTC-4, Don_X wrote: weheh ! Thank you for your response ... but this is not what I am looking for !

[web2py] Re: Basic question about CSS / Web2py !

2012-10-15 Thread weheh
msg = 'this is a very long string ...' msg += 'this is some more ' msg += 'and more ...' db.define_table(..., Field='xyz', label=DIV(msg, _style='width: 100px;'), ...) On Tuesday, October 16, 2012 10:10:20 AM UTC+8, Don_X wrote: weheh ! Thank you for your response ... but this is