ASP.net and css styles
Posted
by c11ada
on Stack Overflow
See other posts from Stack Overflow
or by c11ada
Published on 2010-03-13T18:08:38Z
Indexed on
2010/03/13
18:15 UTC
Read the original article
Hit count: 385
can some on help me on how i can reference images i have all my images stored in an image folder which is located in the root folder (..\images) in my css class i have the the following
#image
{ background-position: left;
background-repeat: no-repeat;}
.background
{
background-image: (..\images\image.gif);
}
and in my .cs file i have
image.Attributes.Add("class", "background");
image is a div tag which is in my aspx code !!
when i run this code i image doesnt show, any ideas what i might be doing wrong
© Stack Overflow or respective owner