border is a shorthand property.
You also have to state a style and color
border: 20px solid red for instance.
Honestly, I think you really need to research more before using selectors and properties without knowing what they mean or how they work.
For an easy reference try https://www.w3schools.com/
It’s basic and mostly accurate.