Closed Bug 177955 Opened 23 years ago Closed 20 years ago

CSS: Can't set DIV width in inline DIVs

Categories

(Core :: DOM: CSS Object Model, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 50626

People

(Reporter: oliver, Assigned: jst)

Details

Attachments

(1 file)

Can't set the width of a div that is placed with "diplay: inline" If you use "display: block", the width is correctly set. I will attach a testcase
Attached file test_case_177955.html
testcase for bug# 177955 Open the file in Mozilla 1.2b/Phoenix 0.4 and IE6.0 to see the difference
This behavior is correct. The 'width' property does not apply to non-replaced inline elements. See CSS2 10.3.1 and 10.6.1. MS Internet Explorer for Windows badly misinterprets 'width' on inline elements and does the equivalent of changing the 'display' type to 'inline-block', which is wrong.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
V INV for obvious reasons
Status: RESOLVED → VERIFIED
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
*** This bug has been marked as a duplicate of 50626 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: