asp.net css image could not be display

trying to display image from css file ,

 cssfilepath
aspx
----
<head id="Head1" runat="server">
<link rel="stylesheet" href="Images/Css/gray.css" type="text/css" />

gray.css
--------
.mainpic
{
	background:url('../Images/Home/mainpic.gif');
	background-repeat:no-repeat;
}

Open in new window

LVL 1
doramail05Asked:
Who is Participating?
 
doramail05Connect With a Mentor Author Commented:
resolved :

../../Images/Home/mainpic.gif
0
 
hosneylkCommented:
try this instead
background-image: url(../Images/Home/mainpic.gif);

Open in new window

0
 
doramail05Author Commented:
changed the relative path
0
All Courses

From novice to tech pro — start learning today.