Closed Bug 50626 (SpanWidth2) Opened 24 years ago Closed 19 years ago

CSS "width" ignored for inline elements

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 34415

People

(Reporter: mozilla, Assigned: clayton)

References

Details

Try to set something like this

<a href="#" style="border: 1px solid #000000; width: 100%; text-align: 
center">Some link</a>

Should make a box that is 100% the width of its parent container with a black 
border and text centered in it. Mozilla does not do this however (IE5 does). 
Mozilla just ignores the width attribute altogether.

CSS1 says that width can apply to text as well 
(http://www.w3.org/TR/REC-CSS1#width), so this is bad.
Never mind. I am a dork. I didn't see that inline elements had to be "replaced" 
elements in order for "width" to apply.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
wow, 5 minutes from filing to invalidating -- and by the same person. That must
be some sort of record.
Status: RESOLVED → VERIFIED
QA Contact: petersen → py8ieh=bugzilla
Mass removing self from CC list.
Now I feel sumb because I have to add back. Sorry for the spam.
*** Bug 58200 has been marked as a duplicate of this bug. ***
*** Bug 71028 has been marked as a duplicate of this bug. ***
*** Bug 126585 has been marked as a duplicate of this bug. ***
*** Bug 131533 has been marked as a duplicate of this bug. ***
*** Bug 239651 has been marked as a duplicate of this bug. ***
*** Bug 245332 has been marked as a duplicate of this bug. ***
*** Bug 256875 has been marked as a duplicate of this bug. ***
*** Bug 231469 has been marked as a duplicate of this bug. ***
*** Bug 231649 has been marked as a duplicate of this bug. ***
*** Bug 217307 has been marked as a duplicate of this bug. ***
*** Bug 177955 has been marked as a duplicate of this bug. ***
*** Bug 150657 has been marked as a duplicate of this bug. ***
*** Bug 149913 has been marked as a duplicate of this bug. ***
*** Bug 206281 has been marked as a duplicate of this bug. ***
*** Bug 209971 has been marked as a duplicate of this bug. ***
*** Bug 271582 has been marked as a duplicate of this bug. ***
*** Bug 182187 has been marked as a duplicate of this bug. ***
*** Bug 212344 has been marked as a duplicate of this bug. ***
*** Bug 10052 has been marked as a duplicate of this bug. ***
*** Bug 143510 has been marked as a duplicate of this bug. ***
*** Bug 108715 has been marked as a duplicate of this bug. ***
*** Bug 59007 has been marked as a duplicate of this bug. ***
Alias: SpanWidth2
OS: Windows 2000 → All
Hardware: PC → All
*** Bug 287386 has been marked as a duplicate of this bug. ***
Status: VERIFIED → REOPENED
Resolution: INVALID → ---

*** This bug has been marked as a duplicate of 34415 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.