#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    West Chester
    Posts
    1
    Rep Power
    0

    Cool 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!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Location
    Netherlands
    Posts
    43
    Rep Power
    12
    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.

    Code:
    background: #fff url("../../images/yourbg.jpg") no-repeat
    Maybe this will solve your problem.
    Good luck.


    Tim
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    5
    Rep Power
    0
    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.

IMN logo majestic logo threadwatch logo seochat tools logo