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)
Tracking
()
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. ?
Reporter | ||
Comment 1•21 years ago
|
||
Reporter | ||
Comment 2•21 years ago
|
||
Reporter | ||
Comment 3•21 years ago
|
||
Comment 4•21 years ago
|
||
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
Comment 5•21 years ago
|
||
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
Updated•20 years ago
|
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
Comment 6•20 years ago
|
||
*** This bug has been marked as a duplicate of 50626 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago → 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•