"riki" <ri******@hotmail.com> wrote:
copy paste this source...you could see that 2'nd table has greater height
than 1'st and both have height="120"...
Of course it does.
If (Sum of all cellspacing) + (sum of all cell heights) <> table
height, then one of the values has to be ignored. The table height is
most likely to be ignored.
<table width="300" height="120" cellspacing="2" bgcolor="gray">
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
6 x 2 + 5 x 40 = 212, which is not 120.
<table width="300" height="120" cellspacing="15" bgcolor="gray">
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
6 x 15 + 5 x 40 = 290, which is also not 120.
Neither of the table is being displayed at 120px high.
Try it again with no heights on the cells. The first table will now be
120px tall. The second will be taller as the content of the table
cells needs about 22px to be displayed, hence
6 x 15 + 5 x 22 = 200px.
But what has this got to do with CSS? All your styling here is being
done via HTML.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>