SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast Shaggy's Avatar
    Join Date
    Aug 2002
    Location
    no-va-sco-sha?
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css background image not working...

    any idea why this won't work??

    <div style="position: absolute; left: 4px; top: 137px; background-image: url("../images/side_drop_shadow_bg.jpg");">

    content in here shows up, but no background?!

    </div>

    does background-image not work with the div tag? i think i've used this kind of thing before...
    Ladies and gentlemen, Shaggy Higgins
    "Almost there. Only a couple of more times over the horizon."

  2. #2
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, it does work in DIVs. Are you sure that the location of the image is correct?
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com

  3. #3
    SitePoint Wizard iTec's Avatar
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    2,243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    shouldnt
    background-image: url("../images/side_drop_shadow_bg.jpg");
    be
    background-image: url(../images/side_drop_shadow_bg.jpg)
    ? its 4am lack o brain power

  4. #4
    SitePoint Enthusiast Shaggy's Avatar
    Join Date
    Aug 2002
    Location
    no-va-sco-sha?
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    thanks iTec

    that worked!! i could have sworn i needed those quotes.

    pretty good for 4am.. maybe you're on to somthing. maybe i'll start working all night and drinking all day instead of the other way around!
    Ladies and gentlemen, Shaggy Higgins
    "Almost there. Only a couple of more times over the horizon."


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •