user1789997
user1789997

Reputation:

Image not showing in chrome. It shows only in firefox

I have a problem with my website. Have defined image on index. Image shows only in firefox. In chrome it doesn't show and I don't know why.. Can anybody help me? Thank you

index.php

<div id="advert">
  <a href="#"><img src="img/advertisement/topbanner.jpg" alt="MyWebsite" title="MyWebsite" /></a>
</div> <!-- advert -->

CSS

#advert {
  height:200px;
  width:460px;
}

Upvotes: 1

Views: 3322

Answers (3)

raj
raj

Reputation: 1

place (../image folder/ image name)[ ../ infront of folder name]

Upvotes: -1

Ria Weyprecht
Ria Weyprecht

Reputation: 1275

Sounds like an adblocker-problem. Try to rename the folder "advertisement" and/or the id "advert" into something like foo check if it works then.

Upvotes: 2

Nick
Nick

Reputation: 6346

Since the code is fine, my guess would be that the image has been saved in CMYK format, instead of RGB.

Or an ad blocker. Since you have an id of advert, this will of course be blocked by an adblocker.

Upvotes: 0

Related Questions