Automatic Width adjustment, Automatic Width adjustment |
Automatic Width adjustment, Automatic Width adjustment |
Kris |
May 1 2007, 06:28 PM
Post
#1
|
Group: Members Posts: 2 Joined: 1-May 07 Member No.: 2,687 |
I am trying to display a calendar html. Below is sample code. I am not sure why the second column have some extra spaces after the sentence is finished. How can that space distributed to other columns.
I appreciate any help. <html> <body> <table valign=top border=1 width=800 height=500> <tr valign=top> <td>1<br>Test1<br>test2<br>test3<br>test4</td> <td>2<br>abc</td> <td>3<br>Test2</td> <td>4<br>Test3</td> <td>5<br>Test4</td> <td>6<br>Test5</td> <td>7<br>Test6</td> </tr> <tr valign=top> <td>2<br>Test1<br>test2<br>test3<br>test4</td> <td>2<br>This column looks too long with extra space<br>test1<br>test2</td> <td>3<br>Test2</td> <td>4<br>Test3</td> <td>5<br>Test4</td> <td>6<br>Test5</td> <td>7<br>Test6</td> </tr> <tr valign=top> <td>3<br>Test1<br>test2<br>test3<br>test4<br>test5<br>test6</td> <td>2<br>abc</td> <td>3<br>Test2</td> <td>4<br>Test3</td> <td>5<br>Test4</td> <td>6<br>Test5</td> <td>7<br>Test6</td> </tr> <tr valign=top> <td>4<br>Test1<br>test2<br>test3<br>test4</td> <td>2<br>abc</td> <td>3<br>Test2</td> <td>4<br>Test3</td> <td>5<br>Test4</td> <td>6<br>Test5</td> <td>7<br>Test6</td> </tr> </table> </body> </html> |
Christian J |
May 1 2007, 06:49 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,630 Joined: 10-August 06 Member No.: 7 |
Maybe because the whole table WIDTH is 800 pixels, and browsers decides to put the surplus width in the column with the longest text lines.
|
Kris |
May 1 2007, 07:28 PM
Post
#3
|
Group: Members Posts: 2 Joined: 1-May 07 Member No.: 2,687 |
I know, But I like to know how we can resolve that by distributing that space on other columns so it would not look odd.
|
pandy |
May 1 2007, 09:35 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
Use widths for the columns then.
|
Lo-Fi Version | Time is now: 29th March 2024 - 07:57 AM |