0

I have been trying to change the logo in this template where the logo is in inserted as a class from the css file but it doesn't seem to be working.

Code below. (P.S. Assume the new logo image name is NEWLOGO.jpg)

CSS

.logo {
    background:url('../images/logo.png') no-repeat center center;
    background-size:90px 30px;
    width:90px;
    margin-left:-45px;
    height:30px;
}

HTML

<div class="logo"></div>

Any help greatly appreciated.

Andy Mercer
  • 5,605
  • 5
  • 40
  • 80
Damien Dunne
  • 1
  • 1
  • 2

4 Answers4

0

If you're using Chrome. You can retry after disable cache. Reference: Disabling Chrome cache for website development

Community
  • 1
  • 1
anhnv
  • 42
  • 3
0

This very much sounds like a cache error. This article should help you disable the cache on multiple browsers.

Your browser is essentially loading an 'old' version of the page, which it has previously saved. This feature is used by browsers to try and increase navigation times, however sometimes when you are editing a site it does cause errors like this.

Toby Cannon
  • 657
  • 5
  • 15
0

your css file is probably cached by your browser.try clearing your browser history to see the changes you made.

AnatPort
  • 719
  • 8
  • 19
0
.logo{
    background:url('../images/NEWLOGO.jpg') no-repeat center center;
    /*You need to replace the logo images in the same folder*/
    background-size:90px 30px;
    width:90px;
    margin-left:-45px;
    height:30px;
}
Bhushan wagh
  • 181
  • 1
  • 13