Closed
Bug 258333
Opened 21 years ago
Closed 21 years ago
Width-style on a anchor in a table cell is ignored
Categories
(Core :: Web Painting, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: mozbugs, Assigned: roc)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
I specified the anchor in the example above to have a width of 100%, but it
displays as if the width would be set to "auto". This problem seems to occur
*only* with anchors, DIVs and headers are not affected. I have tested this with
Mozilla 1.8a4, build 2004090707.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:
Wrong rendering
Expected Results:
Render it correctly. IE and Opera do so.
Comment 1•21 years ago
|
||
Width only applies to block elements. <A> is an inline element.
Add display:block to the A tag styles for this to work as you want.
The behavior of other browsers would be a bug.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 2•21 years ago
|
||
(In reply to comment #1)
> Width only applies to block elements. <A> is an inline element.
>
> Add display:block to the A tag styles for this to work as you want.
>
> The behavior of other browsers would be a bug.
Ah, alright. Yes, that works. Sorry for the wrong bug report, I wasn't aware
about the differences in between those two types. I didn't know that there are
"inline" and "block" elements.
Updated•21 years ago
|
Status: RESOLVED → VERIFIED
Updated•8 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•