Katerina
Katerina

Reputation: 364

Images do not show up using .css file

I downloaded a free template and I want to use it for my web site (using c# in Visual Studio 2010). I put inside the tag, but it shows me only one color, without the images. I put image folder, style.css file and index.html in the same hierarchy in the project.

Upvotes: 0

Views: 77

Answers (3)

Katerina
Katerina

Reputation: 364

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Pocetna.aspx.cs" Inherits="Pocetna" %>

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">;

 <html xmlns="w3.org/1999/xhtml">; 
    <head runat="server">
      <title>Добродојдовте</title>
      <link rel="stylesheet" type="text/css" href="~/style.css" />
    </head>
   <body> 
   <form id="form1" runat="server">  </form>
   </body>
 </html>

Upvotes: 1

maksbd19
maksbd19

Reputation: 3830

do you use firefox or chrome? Use the web developer tool to see that your page is really saying. Then you may get the idea where is the error happening.

Upvotes: 0

Ganesh Bora
Ganesh Bora

Reputation: 1153

CSS which you have copied is having relative path for images. You will be required to either change paths to absolute path or needs to copy images from remote place(from where you have copied css) and put it into required place in local directory

Upvotes: 0

Related Questions