Created by AlienWebguyLinked to 36.2m issues across 136 teams
Using CSS, you can create a background with an opacity of 50%. To do this, you will need to use an RGBa color for your background color. RGBa stands for Red, Green, Blue, and Alpha. Alpha is the opacity value, and it ranges from 0 (fully transparent) to 1 (fully opaque).
To create a 50% faded black background, you will need to use the following code:
<div style="background-color:rgba(0, 0, 0, 0.5);"> <div> Text added. </div> </div>
This code will create a black background with an opacity of 50%. You can adjust the opacity value to create a background with any level of transparency.
Contributor
Teams
136