|
Posted by jojo on 07/02/06 18:04
Jonathan N. Little schrieb:
> jojo wrote:
>> Sorry, didn't get your point yet.
>>
>> himanshupoddar@gmail.com wrote:
>>> i hv made a table and it gets data from my database,
>>
>> What database? How does the table get the data?
>>
>>> and has used word wrapping so that table column remain in fixed size.
>>
>> Guess you mean the CSS
>> word-wrap:break-word
>
> word-wrap, hmmm that's a new one on me. Don't know of any CSS property
> 'word-wrap', 'white-space' I believe is what you mean, else it's some MS
> proprietary junk. If so, it would be okay for a Windows apps but not a
> web page.
Yes, word-wrap is a IE-only property which Microsoft invented. That's
the reason I asked - of course it does not work properly (How else
could it be - it's Microsoft).
>>
>>> it works well till my data doesnt hv spaces in it but when spaces
>> > included the size of the column expands, i dont want to trim the
>> > size of the data itself becoz i want uses to see whole of the data
>> > in tooltip.
>
> This question gets asked nearly a million times, you cannot force
> hyphenation of words with HTML, you must do it with your script as you
> parse the query results.
>
> Tooltip eh? The only way I know of a browser showing a tooltip is when
> your set the element's 'title' attribute but one must note that long
> strings are truncated by user agents, and the length of which is *very*
> browser depended. Title tooltips are *not* a very good location for
> important data. You could use a JavaScript generated tooltip, but one
> must understand that is also not dependable for important data.
>
Yes, try to do everything without JS, use it only if it's absolutely
necessary.
Navigation:
[Reply to this message]
|