Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dear All,

How to set the background Image for Webpage. this is my image name Skyblue.jpg.


I need this Image as background image for my webpage.


Please help thanks.
Posted

1 solution

XML
<body style="background-image:url(bgr.jpg);">
...
</body>



(or)

Use CSS. Add to the theme if you're using one, or a CSS file...

CSS
body {
  background-image: url(images/image.png);
}

Best practices recommend having this in a separate file, rather than the head of the document - and most certainly not inline.
 
Share this answer
 
Comments
Software Engineer 892 25-Jul-12 5:07am    
Thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
Raghunatha_Reddy_S 26-Jul-12 1:17am    
Thank you
_Amy 25-Jul-12 5:34am    
Gud answer. +5!
Raghunatha_Reddy_S 26-Jul-12 1:17am    
:-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900