Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS text transparancy problem (help)

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34552
    LoganM
    Member

    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?

    #88190
    chrisburton
    Participant

    Were you using opacity? Use rgba or hsla on the background.

    background: rgba(0, 0, 0, .2);
    #88192
    thomas
    Member

    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)

    #88193
    thomas
    Member

    Dup post.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.