Yes the border would be as I said (emphasis added):
By that bold line I meant that you would have to already have something like:Quote:
However, this style:
in general won't do anything. If all other p elements already have a border set in your stylesheet, you could use:Quote:
Code:border:1px;
Otherwise you need to define style and color as well:Code:border-width:1px;
Code:border:1px solid black;
If you did, you could define the p.definition border-width and it should inherit the other part of the general p border characteristics. Generally, all three characteristics should be defined when using the border property. This avoids confusion later if you change the inherited values. And, as I said, if there are no inherited values, they must be specified, like:Code:p {
border: 2px solid red;
}
Code:p.definition {
border:1px solid black;
}
