Closed
Bug 215996
Opened 22 years ago
Closed 21 years ago
span does not follow style width
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
People
(Reporter: arysin, Unassigned)
Details
Attachments
(1 file)
|
239 bytes,
text/html
|
Details |
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"> </td></tr></table>
SPAN: <span style="background-color: red; width:200px"> </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
Expected Results:
span sould be 200px wide
| Reporter | ||
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
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"> </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
Updated•21 years ago
|
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
Comment 4•21 years ago
|
||
*** This bug has been marked as a duplicate of 34415 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago → 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•