Forums

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

Home Forums CSS [Solved] CSS Opacity for certain Divs

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30010
    telters
    Member

    Aloha!

    I’m kinda new here, and this is my first question…

    For CSS, how can I make it so that a certain background of a div id has a certain opacity (like 0 is nothing and 1 is a solid color background). I have an image as a background for the website (don’t worry, it works with the design), and would like to do this in order to give it a nice look/

    Thanks!

    #81729
    GreatPotato
    Member
    .transparent50 {
    background: rgba(255, 255, 255, 0.5);
    }
    .transparent100 {
    background: rgba(255, 255, 255, 1);
    }

    Then just use

    ...

    etc

    Ps: sorry about the abruptness, in on my phone.

    #81722
    telters
    Member

    Thanks you guys!

    This is awesome

    Exactly what I was looking for

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