junep
junep

Reputation: 2164

Changing background image does not change the image on browser

Here is a <div> which has background image like

style {
    .bg { background-image:url("../images.png");
          background-position:-5px -100px;
    }
}

...

<div class="bg"></div>

and I change the image file with same name. For example, I change the color of image file and save with same name. But it does not change the image on browser. I changed the color of image from red to blue. But it is still red. How can I refresh the background image? Thanks

Upvotes: 2

Views: 1243

Answers (3)

Ravinder Singh
Ravinder Singh

Reputation: 84

For mac you can try with cmd+shift+r

Upvotes: 1

vladatr
vladatr

Reputation: 626

Shift+F5 - refresh without cache.

Upvotes: 3

Nikhil Parmar
Nikhil Parmar

Reputation: 499

Try open that in incognito window/private window to check CSS or images related changes, as it add it to cache of the browser.

Or you can simply try it by CTRL + R.

Upvotes: 1

Related Questions