css - How do I make a semi transparent background? -
i need make white background 50% transparent without affecting else. how do it?
use rgba():
.transparent{ background:rgba(255,255,255,0.5); } this give 50% opacity while content of box continue have 100% opacity.
if use opacity:0.5, content faded background. hence not use it.
Comments
Post a Comment