Hi

This is  a best way to add an image to your .aspx page

In CSS file add this code for your page

body
{
  background-image:url('images/light-blue-wallpaper.jpg');
      background-repeat:no-repeat;
}
this will work Fine
or you can paste this code in your Style section in your aspx page

and make sure that your Image path is Correct

--- JILANI


On Jul 25, 9:32 pm, Vikas K M <[email protected]> wrote:
> Hi,
>
> I am trying to include a back ground image in my .aspx page. I am writing
> css for background image and including it in my “source” as below
>
> --css
>
> .Backgroun
>
> {
>
>       background-image:url(images/light-blue-wallpaper.jpg);
>
>       background-repeat:no-repeat;
>
> }
>
> --in aspx source
>
> <body style="margin: 0px" class="Backgroun">
>
>     <form id="form1" runat="server">
>
>     <div>…………………………..
>
> Please help. I have registered the css file in my aspx page.
>
> --
> Regards,
> Vikas

Reply via email to