Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Width With Netscape 1

Status
Not open for further replies.

BoulderBum

Programmer
Jul 11, 2002
2,179
US
I have
Code:
<span class="LabelStuff">blah</span>

where LabelStuff is defined like this...

Code:
.LabelStuff
{
	border: thin inset #cccccc; 
	background-color: #F5F5F5; 
	padding: 5px;
	width: 20em;
}

It works great with IE, but blows up with Netscape. What's the deal? How do I set width properly?
 
Setting the width on inline elements is always flaky. Either use a DIV, or add this to your CSS for the SPAN:

Code:
display: block;

P.S. You might get a better response in the HTML/CSS forum next time: forum215

Hope this helps,
Dan
 
I actually ended up posting there and I think you answered that question, too. [lol]

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top