The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Automatic Width adjustment, Automatic Width adjustment
Kris
post 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>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Kris
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 29th March 2024 - 07:57 AM