Click here to Skip to main content
15,886,632 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do i set background image to fill in html
i tried like this. but not working



XML
<html>
<head>


</head>
<body background=""path"" ;background-size:cover >


<img STYLE="position:absolute; TOP:60px; LEFT:200px; WIDTH:200px; HEIGHT:150px" src="path" alt="it's Chritsmas Today";>




</body>
</html>
Posted

Check out the various css background properties[^]
 
Share this answer
 
v2
Comments
Rajesh waran 24-Dec-14 1:17am    
My +5.Good idea
Peter Leow 24-Dec-14 1:54am    
Thank you, Rajesh.
Rajesh waran 24-Dec-14 2:08am    
you're welcome
use background-image attribute to set the path of the image. It could be as

<body background="bgimage.jpg">
</body>

Also check the path of image whether that is accessible.
You can also create CSS class as well.
 
Share this answer
 
Try like this..!









 
Share this answer
 

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