Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am setting a background image using css..

i am using this

HTML
background:#bbb url('../images/yellow.jpg');


i images is in the images folder of my project.

but its not working...

HTML
body
{
    font-size: 9pt;
    color: darkslateblue;
    font-family: Verdana, Arial;
    margin: 0px;
    background:#bbb url('../images/yellow.jpg');
}
Posted
Updated 17-Sep-11 23:48pm
v3

It's probably the relative aspect of the url that is causing the problem: try removing the "../" and see if that helps.
 
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