Using CSS like -
background-image:url('blah.jpg');
According to my book here, I should be able to have a statement like -
background-image:url('images/blah.jpg');
images being my pic folder on the web.
But I seem to be having trouble with that and only statement that seems to work is ...
background-image:url('www.blah.com/images/blah.jpg');
I am wondering whether it just does not work on my local drive (I don't want to load the page to the web yet. )?? OR WHAT??it wont work on your hard drive like that because having '/' at the beginning tells it to go to the very beginning and then work its way up so on your computer it would be the drive itself. Instead use './' which tells it to search from the current folder up which will work everywhere u put it. also, if u use '../' then it will go up one folder and look. Personally every link i use has one variation of these as it never fails for me
so, background-image:url('./images/blah.jpg'); should work for you tcHi Pawky. GREAT, but it didn't work...
OH! I see why! My script file is in a sub directory! The URL is taken FROM the subdirectory! I need "../images/blah.jpg"
Thanks!ok, sweet glad it worked for ya
background-image:url('blah.jpg');
According to my book here, I should be able to have a statement like -
background-image:url('images/blah.jpg');
images being my pic folder on the web.
But I seem to be having trouble with that and only statement that seems to work is ...
background-image:url('www.blah.com/images/blah.jpg');
I am wondering whether it just does not work on my local drive (I don't want to load the page to the web yet. )?? OR WHAT??it wont work on your hard drive like that because having '/' at the beginning tells it to go to the very beginning and then work its way up so on your computer it would be the drive itself. Instead use './' which tells it to search from the current folder up which will work everywhere u put it. also, if u use '../' then it will go up one folder and look. Personally every link i use has one variation of these as it never fails for me
so, background-image:url('./images/blah.jpg'); should work for you tcHi Pawky. GREAT, but it didn't work...
OH! I see why! My script file is in a sub directory! The URL is taken FROM the subdirectory! I need "../images/blah.jpg"
Thanks!ok, sweet glad it worked for ya