February 1st, 2004, 06:47 AM
BG image relative to page or CSS
Im just wondering defining a background image in css.
I know I can use relative and absolute addresses, but
Is the url background-image: url('img.gif'); relative to the CSS or to the page and is it different for each browser.
February 1st, 2004, 06:56 AM
Relative to the CSS. You could either put the full URL in there, or put the link relative to your top level (root) directory. eg.
In your style sheet put: background-image: url('/images/img.gif');
>_ skiFFie ? | Twitter
Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.