Closed Bug 453034 Opened 16 years ago Closed 16 years ago

max-width not working on tables like in FF 2.x

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 307866

People

(Reporter: oetelaar24, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

Hi,

I'm experiencing some trouble with my code.
Before, this was working quite fine with FireFox 2.x/IE7/Opera/Safari. Only now Firefox 3.0 doesn't display the page like it should.
I'm using div's to create my layout, and have a table inside a div to display data, the table has a max-width of 900px.
Then, there is an overall div that contains the rest, this div has an absolute position and a min-width and some other offsets.

Expected behaviour is: The table should be at least the size of the overall div, and at most 900px wide, unless the window is smaller, in which case the table and the div's its contained in resize according to the available space.

As said before, and I've just tested this to be sure. The expected behaviour can be seen in:
Firefox 2.0.0.16,
IE 7,
Opera 9.52,
IE 8 beta 2.


Reproducible: Always

Steps to Reproduce:
1.Create a div with a absolute position and offset it from the left, add some margins
2.Inside the first div, create a second div with no special properties
3.Inside the second div, create a table with a max-width of 900px; and add some rows and so on
Actual Results:  
The table doesn't resize when the window is resized, it just stays the same size it seems to be some kind of calculated size.

Expected Results:  
Resizeable table with a max of 900px wide, and a minimum of x pixels wide according to the min-width set at the toplevel div.

Just a clean install of Firefox 3, nothing special. Tested on XP x64 and XP 32bit (virtual machine) same results.
Please create a minimal testcase and attach it to this bug using the 'Add an attachment' link. Thanks!
This is the example I was writing about in the bug description. It clearly displays the problem.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: