Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

HTML: can someone explain how to fix this simple code ?

Thread Tools
 
Search this Thread
 
Old 28 August 2006, 11:49 PM
  #1  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default HTML: can someone explain how to fix this simple code ?

<table border="1" width=100%>
<tr>
<td colspan=2>hello</td>
</tr>
<tr>
<td width=800px>hello1</td><td>hello2</td>
</tr>
<tr>
<td width=200px>hello1</td><td>hello2</td>
</tr>
</table>

1st row works fine
2nd row, first cell is 800pixels in width - works fine
3rd row, first cell is 200pixels in width - doesn't work
Old 29 August 2006, 12:52 AM
  #2  
boxst
Scooby Regular
 
boxst's Avatar
 
Join Date: Nov 1998
Posts: 11,905
Likes: 0
Received 0 Likes on 0 Posts
Default

Hello

You can't have columns of different widths. The only way you can do that is split the row into more columns and use the colspan that you inexplicably used on the first row.

Steve
Old 29 August 2006, 01:15 AM
  #3  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

ok
Old 29 August 2006, 08:38 AM
  #4  
HankScorpio
Scooby Regular
 
HankScorpio's Avatar
 
Join Date: Feb 2004
Posts: 5,848
Likes: 0
Received 0 Likes on 0 Posts
Default

Or start a new table. If you've got more than a few rows/columns it can be tedious to sort out if you go wrong.

^^^
experience talking
Old 29 August 2006, 10:26 AM
  #5  
TopBanana
Scooby Regular
 
TopBanana's Avatar
 
Join Date: Jan 2001
Posts: 9,781
Likes: 0
Received 0 Likes on 0 Posts
Default

You really shouldn't be arsing around with column widths for formatting. Check out CSS!
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Darrell@Scoobyworx
Trader Announcements
26
30 January 2024 01:27 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM
JackClark
Computer & Technology Related
3
30 September 2015 08:29 PM



Quick Reply: HTML: can someone explain how to fix this simple code ?



All times are GMT +1. The time now is 09:54 AM.