0

I'm working on a website. I have linked the logo image file. The logo is displayed only once when the site runs on the default page i.e. the home page. As I switch on to the other page the logo is not displayed on any page. I have given the correct source path, can anyone help me out on this?

<div id="header">
    <a href="Default.cshtml"><img src="Images/logo2.jpg" alt="Twenty47"   
       style="width:285px; height:250px; margin-top:5px; margin-left:5px;margin-bottom: 0px" /></a>
</div>
Musa
  • 96,336
  • 17
  • 118
  • 137
Wadhawan994
  • 49
  • 1
  • 8

2 Answers2

0

I posted a comment: Have you tried setting the path relatively to the root? src="/Images/logo2.jpg". And it seems it was that.

So if somebody has the same problem and comes here, the solution is:

Add / at the beginning of the path in order to make it relative to site's root.

Oriol
  • 274,082
  • 63
  • 437
  • 513
0

Don't forget the file extensions .jpg and .jpeg are not the same. Webmatrix requires that you use the correct one.

LordLiverpool
  • 39
  • 2
  • 9