Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Image fitting the entire modal content width and height

$
0
0

Solved! The following code works properly, as well as the previous with a relative height value.
(I was testing it within a Slide Box component and there was a mistake on my code)

<div class="wrapper" style="background-image: url({{obj.source}});"></div>

.wrapper {
     margin: auto;
    height: 100%;
    width: 90%;
    max-width: 100%;
    border: 0.1em solid rgb(0,0,0);
    border-radius: 1em;
    
    overflow: hidden;
    background-size: cover;
    background-position: center center;
}

Viewing all articles
Browse latest Browse all 228595

Trending Articles



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