|
Posted by mbstevens on 08/03/07 14:46
Nikolay Kurtov wrote:
> I have index.html, style.css, image.png in one folder.
>
> in index.html I include style.css
> <head>
> <title>Newbie question</title>
> <meta http-equiv="content-type" content="text/html; charset=utf-8" /
> <link href="style.css" rel="stylesheet" type="text/css" />
> </head>
>
>
> In style.css I set the background:
>
> body{
> background-image:url("image.png");
> }
>
>
> But the image doesn't load.
> How should I correct the url in css?
>
In addition to the possibilities reflected in other answers, consider
whether you are posting from a Windows machine. Capitalization does not
matter there, but may on your server. For instance, IMAGE.PNG on a
windows machine would not load under a *[iu]x machine if you called it
"image.png".
Navigation:
[Reply to this message]
|