Forums

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

Home Forums CSS Opacity

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

    I am reading about opacity and they give this example:

    background: rgb(255, 255, 255); background: rgba(255, 255, 255, 0.6);

    What is the point in having the background color repeated twice, with one with opacity? If I take out background: rgb(255, 255, 255); nothing changes.

    Thanks in advance for your help.

    #124516
    TheDoc
    Member

    It’s used as a fallback for browsers that don’t support rgba.

    Normally it would look something like this:

    background: white; /* < IE9 */
    background: rgba(255,255,255,0.6);

    #124530
    jansentina
    Member

    Thanks so much everyone!

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