[SOLVED] Border Outset
Posted: Wed Jun 16, 2021 2:18 am
Trying to set a table with border outset (HTML 5 using CSS).
My code:
HTML validator is displaying the following CSS Multiple Definition:
My code:
Code: Select all
*.TABLE-BORDER-5PX-OUTSET
{
BORDER: solid 5px #000000;
BORDER-STYLE: outset;
}
According to the W3Schools website, the following is correct:The "border" shorthand property and the "border-style" property (with only one value) have both been used. The "border" shorthand property already defines the following properties: "border-style", "border-color", and "border-width". Therefore, the "border-style" property has been defined twice. Consider using only the "border" shorthand property.
I tried putting outset on the same line as "Border: solid 5px 000000; but that causes the outset to disappear.div {
border-style: outset;
border-color: coral;
border-width: 7px;
}