View Single Post
 
Old August 4th, 2004, 02:50 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
quote:why at all in this way?!!! you should not have a 100px cell for a 50px content
I am afraid I cannot accept that ;)

Suppose I have a table with a few rows. On row 1, column 1 has content that is 100 pixels wide. On row two, my content is only 50 pixels wide. Now, how wide is my entire column? 100 pixels, to accommodate for row 1. This means that in row 2 50 pixels of the table cell (next to the content) cannot be clicked as the whitespace is not hyperlinked. Other than that, for aesthetic reasons, I can also imagine a column being wider than the content it contains.
For a good example, look at the usernames of the posters on this page. There is a huge table cell, with only a small name. This means that if the name is hyperlinked, you can only click the name, and not the entire cell.

If I am not mistaken, that was the effect the OP was after. By linking the content you cannot achieve that effect; you'll need a way to link the entire cell or the entire row.

Cheers,

Imar