0

I'm giving the background here then declaring the content in the next div

back{
    background-image: link
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity:0.25
}

When i tried this whole page gets the opacity property. i want only the opacity property to be inherited to the background image not to the content elements.

Aleksej
  • 22,443
  • 5
  • 33
  • 38
krishna
  • 55
  • 7

1 Answers1

1

You can try to put image in one div and text in other div then place the content using position property on image.