Closed Bug 89307 Opened 23 years ago Closed 23 years ago

(see 22274) Extra tables cell space, valign shows no effect (standard mode)

Categories

(Core :: Layout: Tables, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 22274

People

(Reporter: bootsy52, Assigned: karnaze)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010628
BuildID:    2001062815  and Netscape 6.01

The error occurs when using 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
   "http://www.w3.org/TR/html4/loose.dtd">

then the table is showing an unusual behaviour, valign does not take any affect.
The problem does not occur when using 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" 
   "http://www.w3.org/TR/html4/loose.dtd">

as DOCTYPE. I checked my pages with http://validator.w3.org they are correct,
and every other browser shows the tables also in correct format. See an example
of what I mean here:

perl9.tripod.com/doctype-error.html

Carsten

P.S. this problem occures also in Netscape 6.01

Reproducible: Always
Steps to Reproduce:
1. Create a table with 3 rows and 3 collums
2. Slice a picture into exactly the size of the <td width height> size.
3. Finally you'll remark that the picture is not shown as a hole but that there
are spaces in the picture.

4. change the DOCTYPE to 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" 
   "http://www.w3.org/TR/html4/loose.dtd">
the problem is gone

Expected Results:  Mozilla should show the table correctly, like other browsers
do and like the HTML Standard is defined.

<!--########### Zapping TV SET TABLE #####################-->
<table border="0"  cellpadding="0" cellspacing="0" width="158">
<colgroup>
        <col width=16>
        <col width=127>
        <col width=15>
</colgroup>
<tr>
<td width="16" height="16"><img src="images/zapping-tv/top-edge-left.jpg"
width="16" height="16" border="0" alt=""></td>
<td width="127" height="16"><img src="images/zapping-tv/top-bar.jpg" width="127"
height="16" border="0" alt=""></td>
<td width="15" height="16"><img src="images/zapping-tv/top-edge-right.jpg"
width="15" height="16"  border="0"  alt=""></td>
</tr>
<tr>
<td width="16" height="107"><img src="images/zapping-tv/left-bar.jpg" width="16"
height="107" border="0" alt=""></td>
<td width="127" height="107"><img src="images/zapping-tv/center.jpg" width="127"
height="107" border="0" alt=""></td>
<td width="15" height="107"><img src="images/zapping-tv/right-bar.jpg"
width="15" height="107" border="0" alt=""></td></tr>
<tr>
<td width="16" height="35"><img src="images/zapping-tv/bottom-edge-left.jpg"
width="16" height="35" border="0" alt=""></td>
<td width="127" height="35">
<img src="images/zapping-tv/bottom-left.jpg" width="46" height="35" border="0"
align=left hspace="0" vspace="0" alt="">
<img src="images/zapping-tv/bottom-right.jpg" width="81" height="35" border="0"
 hspace="0" vspace="0" alt=""></td>
<td width="15" height="35"><img src="images/zapping-tv/bottom-edge-right.jpg"
width="15" height="35" border="0" alt=""></td>
</tr>
</table>
This is no bug in Mozilla. If you do not want this behavior you can say
IMG { display: block }
See bug 22274 for more explanation.

HTML 4.0 Transitional triggers quirks mode that emulates bugs of older browsers,
but HTML 4.01 Transitional does not. See bug 42525 for that.

*** This bug has been marked as a duplicate of 22274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Summary: Tables, do not size correctly, valign shows no effect → (see 22274) Extra tables cell space, valign shows no effect (standard mode)
You need to log in before you can comment on or make changes to this bug.