Nick_W

msg:1216994 | 8:36 pm on Mar 30, 2003 (gmt 0) |
Sounds like a system thing rather than a CSS thing. Something to do with how Win handles paths with browsers or some such nonsense ;) Try just (bgpatt.jpg); and see what happens. Otherwise try it on a server, it'll work fine... Nick
|
annej

msg:1216995 | 12:28 am on Mar 31, 2003 (gmt 0) |
Nick, 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
|
SethCall

msg:1216996 | 5:29 am on Mar 31, 2003 (gmt 0) |
your syntax seems absolutely fine. *once* i had to do background-image:url(./gold-pattern1.jpg); with the "./" to indicate current directory. Otherwise, I have no idea...
|
WibbleWobble

msg:1216997 | 8:44 am on Mar 31, 2003 (gmt 0) |
Are you calling the external sheet correctly? Are other properties in the external sheet being read, or is it all omitted?
|
BlobFisk

msg:1216998 | 12:44 pm on Mar 31, 2003 (gmt 0) |
annej, 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
|
annej

msg:1216999 | 4:16 pm on Mar 31, 2003 (gmt 0) |
Thanks everyone for your suggestions. Once you helped me realize that everything was correct with my background image code I looked at my style sheet. When I copied it over to the style sheet from the HTML page I copied the < style > tags with it. Apparently I don't need them on the style sheet and once I got rid of them the background worked fine. I would have figured it out earlier but everything else was working so I focused on the background image. Thanks again. I fill so silly that it was such a stupid mistake. Anne
|
Nick_W

msg:1217000 | 4:18 pm on Mar 31, 2003 (gmt 0) |
>such a stupid mistake Happens to me on a dailey basis. Glad it worked out ;) Nick
|
|