Re: [web2py] Re: how to set text limitation in a div

2012-05-15 Thread Yogesh
Vibhor What have you put inside the div To my understanding use a label. and if you are having something descriptive use . CSS Control is always better...

[web2py] Re: how to set text limitation in a div

2012-05-15 Thread Annet
When I asked this question, pbreit, provided me with the following solution: ''' I'd probably use a function or virtual field for that, not store it in DB. And it could be cleaned up a bit. Something like: def trunc_desc(s) if len(s) > 128: return s[:128] + '...' return s ''' Y

[web2py] Re: how to set text limitation in a div

2012-05-14 Thread Larry Weinberg
You want style of overflow:hidden I believe.