Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67411

Trying to Make Image Background Opaque

$
0
0

I am trying to make the image only opaque while keep the rest of the screen normal.

I have already tried a simple usage of opacity (ex: opacity: 0.9;)

My current code looks like this: HTML

<ion-content class='background' no-bounce>

CSS

ion-content.background{
    --background: url(../../assets/main_background4.jpg) 0 0/100% 100% no-repeat;
}

I would like to just dull the image I am using as a background slightly, but currently the entire screen goes opaque no matter what I try. Is it possible to set opacity some way in the --background part?


Viewing all articles
Browse latest Browse all 67411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>