Forums

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

Home Forums CSS DIV Opacity issue

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #204145
    kiwis
    Participant

    I want a parent DIV as a container.

    In that I want a DIV with a black background with a opacity of .60. I then want everything in that DIV to not adopt the .60 opacity.

    How can I do this?

    #204152
    Shikkediel
    Participant

    You could use rgba (or hsla) :

    #element {
    background: rgba(0,0,0,0.6);
    }
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.