How to make like border ;

How to make like this;
border: 1px solid rgba(0, 0, 0, 0.8);

스크린샷 2022-03-10 오전 9.13.45

Not the following method :
.grid-item {
background-color: rgba(255, 255, 255, 0.8);
border-width: 1px;
border-color: rgba(0, 0, 0, 0.8);
}

But the following method :
border: 1px solid rgba(0, 0, 0, 0.8);