Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Background Image hidden by background color

$
0
0

@bharned3 wrote:

Can’t figure this one out. I have dark theme set on my app so the background is set to black. I am now trying to add an image to the background on certain pages and It is getting set behind the black color. Any clue how to fix this?
I played with Z-index , but no luck. Not sure how to resolve and my searches have come up empty.

here is my class that I am adding to the ion-content

.bg{

 position: absolute;
 width:100%;
 height:100%;
 background-image: url('url image here') ;
 background-repeat: no-repeat;
 background-size: cover;
 background-position: center;
 background-color: transparent;

}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



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