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

Background image : center not working on Android

$
0
0

@DevLR wrote:

Hello

I'm trying to have a background image that covers the whole screen an that is centered (so the parts cropped if the width is too high are on the sides). I used background-size: cover and background-position: center and it worked perfectly on the browser but on my android device the image isn't centered. How can I fix that ?

.getting-started {
text-align: center;
background: url(../../img/dinner.jpg);
background-size: cover;
background-position: center center !important;
background-repeat: no-repeat;
}

<ion-content padding class="getting-started">
...
</ion-content>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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