Closed
Bug 108715
Opened 24 years ago
Closed 20 years ago
width on span not used
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: bugzilla, Assigned: dbaron)
References
()
Details
on http://gemal.dk/test/news.html
I have a span that is set to width: 150px via CSS but Mozilla doesn't seem to
respect that. IE renders the span at width 150 but Mozilla just ignores the
width.
20011106
| Assignee | ||
Comment 1•24 years ago
|
||
CSS2 section 10.3.1 says 'width' and 'height' don't apply to non-replaced inline
elements.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 2•24 years ago
|
||
really...?
it validates as correct css at css validator..:)
| Reporter | ||
Comment 3•24 years ago
|
||
any clues what I can use if I want:
<span>test</span><span>test2</span>
and want test and test2 to be 100px width
?
| Assignee | ||
Comment 4•24 years ago
|
||
It's perfectly valid. It just doesn't do anything. The CSS validator would
have to do the complete cascade and all of selector matching to warn about this
situation. Consider:
.foo {
width: 150px;
}
span {
display: inline;
}
<span class="foo">Hi!</span>
Comment 5•24 years ago
|
||
You likely want inline-block instead of inline for display. Unfortunately,
support for inline-block is rather slim so far....
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Status: VERIFIED → REOPENED
Resolution: INVALID → ---
Comment 6•20 years ago
|
||
*** This bug has been marked as a duplicate of 50626 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago → 20 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•