When you define the css class put a dot (.) before the name of the class, for example:

.backgrd
{}

The dot tells css that it's a class and not a tag or an id

Sent from my iPhone

On Jul 26, 2009, at 11:16 PM, Vikas K M <[email protected]> wrote:

Hi,

I am trying to load an image as a background for an aspx page. I have written this in css and included in the aspx page like this

--in css
backgr
{
      background-image:url(images/light-blue-wallpaper.jpg);
}

--In aspx

<body style="margin: 0px" class=backgr>

But still the image is not coming in the background when I run the application. Please help.

Regards,

Vikas







--
Regards,
Vikas

Reply via email to