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