wouldbewebmaste
04-02-2007, 10:53 AM
Suppose you have a table cell. You have some text in the cell. Regardless of if its centered or right or left justified, if the text would be wider than the cell, it will wrap to a new line. The first line, and each line except the last line, will always take up as much width of the cell as possible.
Now I have some text in a cell that happens to take up two lines. What wraps to the second line is not enough to fill it up. This text, by the way, is centered. So I have a full-width line of text, and under that, the remainder takes up half a line. I'd like for the width of both lines of text to be the same. I'd like it to look balanced.
Now I don't want to adjust the width of the cell so that the text is forced to balance, because the text is dynamic. It changes. Also, my users use different resolutions. For people using narrower resolutions, the table might force horizontal scrollbars. For people with wider resolutions, they might be able to have the text all on one line. That won't happen if I force the width of the cell.
So I was hoping there was some kind of HTML tag or something that would make text balance out in width over multiple lines.
I hope that is a better explanation.
Now I have some text in a cell that happens to take up two lines. What wraps to the second line is not enough to fill it up. This text, by the way, is centered. So I have a full-width line of text, and under that, the remainder takes up half a line. I'd like for the width of both lines of text to be the same. I'd like it to look balanced.
Now I don't want to adjust the width of the cell so that the text is forced to balance, because the text is dynamic. It changes. Also, my users use different resolutions. For people using narrower resolutions, the table might force horizontal scrollbars. For people with wider resolutions, they might be able to have the text all on one line. That won't happen if I force the width of the cell.
So I was hoping there was some kind of HTML tag or something that would make text balance out in width over multiple lines.
I hope that is a better explanation.