File: bug2997.html

package info (click to toggle)
iceweasel 2.0.0.19-0etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 298,784 kB
  • ctags: 317,912
  • sloc: cpp: 1,796,902; ansic: 987,677; xml: 109,036; makefile: 47,777; asm: 35,201; perl: 26,983; sh: 20,879; cs: 6,232; java: 5,513; python: 3,249; pascal: 459; lex: 306; php: 244; csh: 132; objc: 97; yacc: 79; ada: 49; awk: 14; sql: 4; sed: 4
file content (75 lines) | stat: -rw-r--r-- 3,053 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<html>
<head>
<title>Bug 2997</title>
</head>
<body>

<p>Here's the original case.  All of the cells have images that fill to
their given widths except the ones marked "Empty".</p>


<table width="566" bgcolor="#00FFFF" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#FF0000" width="222"><img height="40" width="222" border="0" alt="Hometown AOL"></td>
    <td bgcolor="#666600" width="145"><img border=0 width=145 height=40 alt="Quick Start Link"></td>
    <td bgcolor="#009999" width="199">Empty</td></tr>
  <tr>
    <td bgcolor="#0000ff" width="367" colspan="2"><img height="20" width="367" alt=" Welcome"></td>
    <td bgcolor="#990099" width="199">Empty</td></tr>
</tr></table>

<p>If we fill either empty out with text, the problem goes away.</p>

<table width="566" bgcolor="#00FFFF" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#FF0000" width="222"><img height="40" width="222" border="0" alt="Hometown AOL"></td>
    <td bgcolor="#666600" width="145"><img border=0 width=145 height=40 alt="Quick Start Link"></td>
    <td bgcolor="#009999" width="199">Empty - lots of text here now - and more and more and more text in it</td></tr>
  <tr>
    <td bgcolor="#0000ff" width="367" colspan="2"><img height="20" width="367" alt=" Welcome"></td>
    <td bgcolor="#990099" width="199">Empty</td></tr>
</tr></table>

<p>&nbsp;</p>

<table width="566" bgcolor="#00FFFF" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#FF0000" width="222"><img height="40" width="222" border="0" alt="Hometown AOL"></td>
    <td bgcolor="#666600" width="145"><img border=0 width=145 height=40 alt="Quick Start Link"></td>
    <td bgcolor="#009999" width="199">Empty</td></tr>
  <tr>
    <td bgcolor="#0000ff" width="367" colspan="2"><img height="20" width="367" alt=" Welcome"></td>
    <td bgcolor="#990099" width="199">Empty - this has lots and lots and lots of text in it</td></tr>
</tr></table>


<p>Taking away either the cellpadding=0 or cellspacing=0 fixes the problem.</p>


<table width="566" bgcolor="#00FFFF">
  <tr>
    <td bgcolor="#FF0000" width="222"><img height="40" width="222" border="0" alt="Hometown AOL"></td>
    <td bgcolor="#666600" width="145"><img border=0 width=145 height=40 alt="Quick Start Link"></td>
    <td bgcolor="#009999" width="199">Empty</td></tr>
  <tr>
    <td bgcolor="#0000ff" width="367" colspan="2"><img height="20" width="367" alt=" Welcome"></td>
    <td bgcolor="#990099" width="199">Empty</td></tr>
</tr></table>

<p>As does removing the explicit width on the table...</p>

<table bgcolor="#00FFFF" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#FF0000" width="222"><img height="40" width="222" border="0" alt="Hometown AOL"></td>
    <td bgcolor="#666600" width="145"><img border=0 width=145 height=40 alt="Quick Start Link"></td>
    <td bgcolor="#009999" width="199">Empty</td></tr>
  <tr>
    <td bgcolor="#0000ff" width="367" colspan="2"><img height="20" width="367" alt=" Welcome"></td>
    <td bgcolor="#990099" width="199">Empty</td></tr>
</tr></table>


</body>
</html>