Closed Bug 256875 Opened 21 years ago Closed 20 years ago

display:inline causes width in div to be ignored

Categories

(Core :: Layout: Block and Inline, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 50626

People

(Reporter: mjgamble, Unassigned)

Details

Attachments

(3 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a3) Gecko/20040825 Firefox/0.9.1+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a3) Gecko/20040825 Firefox/0.9.1+ In the attached page there is a box, two rows with two colums in each. The first column is 50% width, the second is 35%. Background colors are set to show where the columns are. With display:block the columns render on separate lines but are the correct widths. With display:inline they are on the same "row" but their widths are reset to the minimum of the content. In IE it works as expected. Attached are screenshots of both... Reporoducible in IE6/IE5.5/Firefox0.9.3 and now the trunk 20040825 Reproducible: Always Steps to Reproduce: 1. Load attached html sample 2. Compare screenshots 3. ?
Attached image IE 5.5 Screenshot
It's supposed to do that. Width does not apply to inline elements, per the CSS spec. That IE does it is an IE bug.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Width does not apply to *non-replaced* inline elements to be exact... http://www.w3.org/TR/CSS21/visudet.html#propdef-width
Status: RESOLVED → VERIFIED
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
*** This bug has been marked as a duplicate of 50626 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago20 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: