Closed Bug 282425 Opened 20 years ago Closed 20 years ago

Table has lots of white space inside when DOCTYPE used, no DOCTYPE and it look normal.

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: chowell, Unassigned)

References

()

Details

(Whiteboard: Invalid)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Firefox does not process tables correctly when <!DOCTYPE HTML PUBLIC "-
//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html40/strict.dtd"> included 
in the document, also tried with Transitional DOCTYPE. The tables has a lot of 
extra space like 3 lines instead of 1 line inside a cell.
see http://www.pcug.org.au/~chowell/ which works in MSIE and not in Firefox 1.0
When I remove the DOCTYPE statement from the page it all works but then it 
breaks my Validated HTML.
http://validator.w3.org/check?uri=http://www.pcug.org.au/~chowell/index.htm


Reproducible: Always

Steps to Reproduce:
1. Browse http://www.pcug.org.au/~chowell/ with Firefox 1.0
2. look at the table at the bottom of the page.
3. View the sourcecode as required.

Actual Results:  
If I removed the <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 
4.01//EN" "http://www.w3.org/TR/html40/strict.dtd"> Firefox appears to display 
the page correctly.

Expected Results:  
rendered the page correcly when I specify a DOCTYPE.
Why are there gaps between image rows in tables when the layout engine is in the
Standards mode?
http://www.mozilla.org/docs/web-developer/faq.html#gaps

Why are there still gaps even between text rows in tables when the layout engine
is in the Standards mode or in the Almost Standards mode?
http://www.mozilla.org/docs/web-developer/faq.html#margins
Whiteboard: Invalid
(In reply to comment #1)
> Why are there gaps between image rows in tables when the layout engine is in the
> Standards mode?
> http://www.mozilla.org/docs/web-developer/faq.html#gaps
> 
> Why are there still gaps even between text rows in tables when the layout engine
> is in the Standards mode or in the Almost Standards mode?
> http://www.mozilla.org/docs/web-developer/faq.html#margins
> 
Fixed problem by changing CSS for TD and removing <P> around text. Thanks for
the time Gérard, sorry to waste it.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.