Forums

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

Home Forums CSS opacity on background not on text !

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #37555
    Mnes
    Member

    Hello, I’m a new member I hope to be nice with you ..
    In fact I have a question in the CSS ..

    Can I use on the background of the class “opacity” only without affecting the text?
    Example:

    .alt1, .alt1Active
    {background-color: #99e0fc; opacity:0.6;}

    When you do this be transparency on the background and the text “all the class” .. Is there a way?

    Thanks ..

    #100862
    chrisburton
    Participant

    Sort of. You can use rgba or hsla.

    example

    background: rgba(0, 0, 0, .5);
    #100863
    Mnes
    Member

    This means I can not do what I want ?!

    Thanks Mr.Christopher ..

    #100864
    chrisburton
    Participant

    You can but not using opacity.

    #100866
    Mnes
    Member

    Thanks Mr.Christopher for help ..

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