Closed Bug 152045 Opened 22 years ago Closed 22 years ago

MZ not handling stylesheet width for hyperlinks

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: estebansmith, Assigned: dbaron)

References

()

Details

This page references a stylesheet containing this class definition for hyperlinks:

.PageLink
{
	PADDING-RIGHT: 1px;
	PADDING-LEFT: 1px;
	PADDING-TOP: 1px;
	PADDING-BOTTOM: 1px;
	COLOR: white;
	FONT-FAMILY: 'Lucida Sans Unicode';
	FONT-SIZE: 10pt;
	BACKGROUND-COLOR: DarkGreen;
	MARGIN: 1px;
	BORDER-LEFT: white 1px solid;
	BORDER-BOTTOM: white 1px solid;
	BORDER-TOP: white 1px solid;
	BORDER-RIGHT: white 1px solid;
	TEXT-ALIGN: center;
	HEIGHT: 20px;
	WIDTH: 200px;
}

In Internet Explorer, the hyperlinks display at the 200px width.  In Mozilla,
they display only at the width of the hyperlink text.
Over to style system.
Assignee: jst → dbaron
Component: DOM Style → Style System
Invalid?
width does not apply to inline, non-replaced elements
see http://www.w3.org/TR/REC-CSS2/visudet.html#q4
Correct, this is invalid.  You need to set 'display: block' (or, in the future,
'display: inline-block') for the 'width' property to apply here.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
VERIFIED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.