Re: [web2py] Re: how to set text limitation in a div
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
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 ''' You could also set the overflow property of the div in css. Annet.
[web2py] Re: how to set text limitation in a div
You want style of overflow:hidden I believe.