Forum Moderators: open
There is problem i am facing with the table cell. I am using table for layout purpose. So with of the table cell is fixed for me. Each cell will contain a single word. If the word length is with respect to the table cell width i am not having any problem.
When the length of the word in more (For eg, if table cell can accept 15 chars and my word length is 30 chars), the table cell automatically grows to 30 char length.
Is there any way to fix the table cell length, irrespective of the word length.
I am having one solution in mind. It is round about one. If we know the table cell width, we can calculate approximately how many chars will fit with in that cell and correspondingly add an empty space in the word such that a fresh line will start with in the cell.
But this solution is bit tough to maintain. Is there any direct way for this problem?
Thanx in advance,
Vinod.
By the way, i know that IE 6 ignores this tag
[w3.org...]
This is the w3c page about text formatting and the pre tag
Hope it helps
So your "round about" approach is the only thing I can think of right now: doing some server side processing (or client-side for that matter) before outputting the page to insert line breaks as needed. Messy, though.