The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › CSS text transparancy problem (help)
ok so i have a box with text and i made the box somewhat transparent, but the text is also transparent. how can i make the text not transparent?
Were you using opacity? Use rgba or hsla on the background.
background: rgba(0, 0, 0, .2);
For older versions of IE that don’t support RGBA and HSLA, you can use a gradient filter with the same start and end colors.
div {filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#33000000,endColorstr=#33000000);}
Note: #33000000 is rgba(0, 0, 0, .2)
Dup post.