Forum Moderators: not2easy
I still can't figure out why this only works in the title section of my HTML page but not on a separate css sheet. The sheet and HTML page are in the same directory and it doesn't seem to matter if I give the full URL or not. I've about given up but hoped someone here could tell what I've doing wrong.
body {background-image:url(C:\02html\patches\bgpatt.jpg);}
in the head of an HTML page it works fine but if I put it on a CSS sheet it doesn't work at all. This is true no matter what version of Netscape or IE I've tried.
Meanwhile everything else I have on the separate stylesheet works fine. I haven't tried to replace tables but font size, font and background color etc works great.
I must be missing some subtle thing. Any ideas?
Anne
Thanks for the suggestion. I tried uploading both
body {background-image:url(bgpatt.jpg);}
and
body {background-image:url(http://www.mydomain.com/bgpatt.jpg);}
in my css page. It still doesn't work.
I don't have anything in the body tag in my HTML. It's just < body > . Should I have something else in there?
Anne
You say that the CSS and HTML files are in the same directory, but where is the image file? The URL call to the image in the CSS file is relative to the location of the CSS file.
Have you tried either putting the image in the same directory as the CSS file and using Nick's (bgpatt.jpg); suggestion, or using (patches/bgpatt.jpg); to go down a level into the patches folder where the image is?
HTH
Thanks again. I fill so silly that it was such a stupid mistake.
Anne