by Daedalus » July 13th, 2018, 4:59 pm
I've accidentally found this thread, so I'm gonna offer a trick that takes advantage of the cell margins that automatically widen for greater text. Add . . .
- Code: Select all
[color=transparent]. . . an even greater amount of invisible text that will adjust the cell to an overall-longer text length, causing a visibly shorter cell of text to widen.[/color]
It will change this . . .
The longer text creates the wider cell when both cells contain all-visible text. | The visibly shorter text has a more narrow cell. |
. . . to this . . .
The longer text creates the wider cell when both cells contain all-visible text. | The visibly shorter text now has a wider cell.This is due to the invisible text that creates an overall-longer text block. |
I've accidentally found this thread, so I'm gonna offer a trick that takes advantage of the cell margins that automatically widen for greater text. Add . . . [code][color=transparent]. . . an even greater amount of invisible text that will adjust the cell to an overall-longer text length, causing a visibly shorter cell of text to widen.[/color][/code]
It will change this . . .
[table border=1 cellpadding=0 cellspacing=0 width=100% height=50px][tr][td align=center valign=middle bordercolor=#666666 bgcolor=#CCCCCC]The longer text creates the wider cell when both cells contain all-visible text.[/td] [td align=center valign=middle bordercolor=#666666 bgcolor=#CCCCCC]The visibly shorter text has a more narrow cell.[/td][/tr][/table]
. . . to this . . .
[table border=1 cellpadding=0 cellspacing=0 width=100% height=50px][tr][td align=center valign=middle bordercolor=#666666 bgcolor=#CCCCCC]The longer text creates the wider cell when both cells contain all-visible text.[/td] [td align=center valign=middle bordercolor=#666666 bgcolor=#CCCCCC]The visibly shorter text now has a wider cell.[color=transparent]This is due to the invisible text that creates an overall-longer text block.[/color][/td][/tr][/table]