November 6th, 2003, 10:38 AM
CSS Background-Image Problem
I am trying to add a background-image tag to my external stylesheet, but the image is not showing up. I tryed just simply embeding the background-image tag into the html page and it worked. I know the external stylesheet is working, because when I changed it, the styles changed. Thanks to anyone that can offer advice!
November 6th, 2003, 11:32 AM
Make sure that you link to the right folder.
Maybe you have your stylesheet in the a folder called includes (includes/stylesheets/css.css).
That means that you need to 'link' proper.
For example your stylesheet.
Maybe this will solve your problem.
background: #fff url("../../images/yourbg.jpg") no-repeat
December 2nd, 2003, 08:47 PM
also, if youre using a mac, you may have to add an additional styletag line:
background-image: url('image.jpg') no-repeat top left;
same thing was happening to me, i added that line, for some reason Macs OS 9.x and i believe OSX too read "background-image" and pcs read "background". each ignores the other so you can have both, but its repetetive to have to type both.
maybe this helps.