Css background image is not working
background-image:url(pic/a.jpg);
i have a folder name pic in my www folder..
plz help.
Css background image is not working
background-image:url(pic/a.jpg);
i have a folder name pic in my www folder..
plz help.
Hello.
Is your CSS placed directly in the HTML or with an external stylesheet?
If your stylesheet is in domain/css/general.css, then that background image would look for domain/css/pic/a.jpg. Add a slash in front of pic so it looks for the image from your site's root domain.
Otherwise, make sure the file exists and the case is correct. Linux is case sensitive.
Best regards,
Brian Yang - TechAirlines
How am I doing? Click thestar button at the bottom left to rate this post. Thanks.
Terms of Service | Account Portal | Wiki
It would also help if you would give a link to the page with the problem.
Sometimes the problem is as simple as a typo.
Nothing is always absolutely so.
you shound use: background: url("../your folder/your file's name") no-repeat;
Hi. You can use this :
background-image:url("mypix.jpg");
So, if you want the image to be repeated, you can use :
background-repeat:repeat-x; // x axis
background-repeat:repeat-y; // y axis
background-repeat:repeat; // x and y axis
background-repeat:no-repeat; // neither x axis nor y axis
I hope this will help you.
Bye.
Greg.