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