Problem when resizing the background image


#1

Hello! I have a problem because my backgound image not resized in different screen sizes. My code is like this:

home.scss
.home {
background: url("…/…/img/my_image.png") no-repeat center center fixed;
}

Somebody know how can I solve it?
Thanks in advance.

Best regards.


#2

Do you want it to scale and fit the entire background? Use background-size: cover


#3

Hi do you have try this ?

-webkit-background-size: cover; /* for old version of Chrome and Safari /
background-size: cover; /
standard version */