how to apply opacity for border only ccss code example Example: how to give opacity to border border: 1px solid rgba(255, 0, 0, .5);