i am working on c# asp.net web pplication .net 4.5
i used this code to insert background image on webform.
<body background="image.jpg"> </body>
but the problem is that this image is repeated 5 to six time on page.
is there any possibilty to insert the image once on page???
thanks
adding background image in asp.net
Page 1 of 17 Replies - 1295 Views - Last Post: 06 October 2012 - 02:27 PM
Replies To: adding background image in asp.net
#2
Re: adding background image in asp.net
Posted 06 October 2012 - 11:25 AM
In css use or style:
.ImageBG
{
background-image: url('path to image');
background-repeat: no-repeat;
background-position: right center;
}
This post has been edited by _HAWK_: 06 October 2012 - 11:27 AM
#3
Re: adding background image in asp.net
Posted 06 October 2012 - 01:34 PM
#4
Re: adding background image in asp.net
Posted 06 October 2012 - 01:41 PM
Did you try the background-size: 100%; in the same css class as above?
Edit: that is a css3 property. I'll look for an equivalent. Poss Solution
Edit: that is a css3 property. I'll look for an equivalent. Poss Solution
This post has been edited by _HAWK_: 06 October 2012 - 01:52 PM
#5
Re: adding background image in asp.net
Posted 06 October 2012 - 01:50 PM
_HAWK_, on 06 October 2012 - 01:41 PM, said:
Did you try the background-size: 100%; in the same css class as above?
yes I did, but its still representing very small size.
Sabra khan, on 06 October 2012 - 01:46 PM, said:
I have solved it, I just increased the actual size of image,
thanks for your precious time.
#6
Re: adding background image in asp.net
Posted 06 October 2012 - 01:55 PM
That was a choice, did you see my updated link?
#7
Re: adding background image in asp.net
Posted 06 October 2012 - 02:12 PM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|