Closed Bug 155317 Opened 22 years ago Closed 22 years ago

Stylesheet bug?

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: larrymo, Assigned: dbaron)

References

()

Details

Hi,

I am using the SPAN tag and stylesheet to format some menu items
It looks like the width and height specifications in the stylesheet are 
apparently ignored in Mozilla. The size of SPAN seems to be determined by  the 
size of the string "articles_mnu" of variable length.
I have had to use PADDING-RIGHT and PADDING-BOTTOM in the stylesheet to adj. 
the sizeof the SPAN.
BTW, I have not uploaded the codes onto my demo website yet.
Thanks for your help


Larry.


Here's the code segment.

SPAN.btnarticle{
	cursor: hand;
	font-family: arial;
	font-size: 14px;
	background-image: url("./imgs/home.gif");
	background-repeat: no-repeat;
	padding-right:28px;	/* I have to include this in the style to 
display the*/
				/* background */
	padding-bottom:5px;	/* I have to include this in the style to 
display the*/ 
					/* background */
	height:23px;		/* apperantly ignore by Mozilla*/
	width:80px;		/* apperantly ignore by Mozilla*/
	color: #949494;
	border-top: 1px solid #8F8F8F;
	border-left: 1px solid #8F8F8F;
	border-bottom: 1px solid #8F8F8F;
	border-right:1px solid #8F8F8F;
}


<SPAN onmouseover="btnOvr(this);" onmousedown="btnDwn(this);" 
onmouseout="btnOut(this);" Title="Articles page ..." CLASS="btnarticle" 
onclick="loadPg('art');">&nbsp;<%=articles_mnu%>&nbsp;</SPAN>
The 'width' and 'height' properties do not apply to inline, non-replaced
elements.  See CSS2 10.3.1 and 10.6.1.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
yup
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.