Yes the border would be as I said (emphasis added):
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:
Otherwise you need to define style and color as well:
Code:
border:1px solid black;
By that bold line I meant that you would have to already have something like:
Code:
p {
border: 2px solid red;
}
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.definition {
border:1px solid black;
}
Bookmarks