.details-container::before {
content: "";
position: absolute;
top: 0; /* can delete top/left etc if sizes are 100% */
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.5);
z-index: -1; /* must be lower number than objects needing to be in front */
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter