Closed Bug 215996 Opened 22 years ago Closed 21 years ago

span does not follow style width

Categories

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

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 34415

People

(Reporter: arysin, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 <table border=1><tr><td style="background-color: blue; width:200px">&nbsp;</td></tr></table> SPAN: <span style="background-color: red; width:200px">&nbsp;</span> td will always be 200px while span will always be as small as possible Reproducible: Always Steps to Reproduce: 1.open test case 2. 3. Actual Results: span is as small as &nbsp; Expected Results: span sould be 200px wide
Attached file span style width fails
Span element is in HTML *inline* at default. You can't set width for inline elements. If you want to set its width, you have to set its display property to block (or similar value), for example this way: <span style="background-color:red;width:200px;display:block">&nbsp;</span> Read more about width property: http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-width Marking as INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Component: Browser-General → Layout: Block & Inline
Resolution: --- → INVALID
verified.
Status: RESOLVED → VERIFIED
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
*** This bug has been marked as a duplicate of 34415 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago21 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: