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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with borders

Status
Not open for further replies.

vvlad

Programmer
May 27, 2002
151
DE
Hi all,

Can anybody tell me why this piece of code works,

Code:
<head>
<style>
p.mBorder
{
	border-color: #000000;
	border-width: medium;
	border-style: solid;
}
</style>
</head>

<p class = &quot;mBorder&quot;>Test border</p>


and why this one does not?

Code:
<head>
<style>
mBorder
{
	border-color: #000000;
	border-width: medium;
	border-style: solid;
}
</style>
</head>

<span class = &quot;mBorder&quot;>Test border</span>



In the first case, I get the borders I want, in the second one I do not.
What do I miss?

Thanks,


vlad
 
Sorry, it does not work for me.
There must be something else.

vlad
 
You are right, I was using IE5.
Thanks for the tip.

Vlad

vlad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top