Closed Bug 209993 Opened 21 years ago Closed 21 years ago

div center combined with div specifying fixed width causes tables to be incorrectly.

Categories

(Core :: Layout: Tables, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 6976

People

(Reporter: mjh-bugs-mozilla-20060801, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (compatible; Konqueror/3.1; Linux)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a; Gecko/20030619)

If the width of the window is less than the width specified by the div, then the page 
will be offset outside the actual bounds of the window. (Ie. it does not produce a 
wide page that is merely scrolled).  

Reproducible: Always

Steps to Reproduce:
1. Save the following to a file: 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd"> 
<html><div align="center"><div style="WIDTH: 600px;"> 
<table width="600" border="1"><tr><td>Cell 1</td><td>Cell 2</td></tr></table> 
</div></div></body></html> 
 
2. Open file in browser 
3. Resize window to be 400 pixels wide. 
Actual Results:  
table is 600 pixels wide. document displayed is around 500 wide. cells extend off 
the left hand edge of the display. 

Expected Results:  
Entire page should be displayed. 

This may be related to bug #97777, but it's not obvious if it's the same from the 
discussion on that bug and the test cases given.

*** This bug has been marked as a duplicate of 6976 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.