CSS Shorthand Border Property
CSS Border - Shorthand Property
Like you saw in the previous page, there are many properties to consider when dealing with borders.
To shorten the code, it is also possible to specify all the individual border properties in one property.
The border
property is a shorthand property for the following individual border properties:
border-width
border-style
(required)border-color
You can also specify all the individual border properties for just one side:
Exercise?What is this?
Test your skills by answering a few questions about the topics of this page
Drag and drop the correct values to set the border as 5px, solid, and green.
p {
border: ;
}
solid
5px
green
dotted