Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    May 2010
    Location
    Bathurst, Australia
    Posts
    180
    Thanks
    1
    Thanked 22 Times in 22 Posts

    The background disappearing problem in IE

    Does anyone know the actual answer for this? I've been experiencing this problem with ie 8 and 7. Finally got fixed in 9 i guess? Haven't tested in anything earlier than those. I found a few articles and threads that said to make the position relative or declare a height. Lots of other weird things. But i found that using the "background" shorthand was my issue (which one person said this was irrelevant). I noticed using the dev tools that none of the style for the background image were being applied so I wrote each of them out on their own and now it works fine.

    EDIT:
    I also forgot to mention the offending code that caused this in the first place which was from here http://www.cssstickyfooter.com/. Not only did it cause my footer background to disappear but also 2 other elements using the background shorthand.
    Last edited by BulletTimeBill; 11-30-2010 at 08:32 AM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    Does anyone know the actual answer for this?
    It's not possible to give answer to an unknown issue. Can we have a link to your page?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    820
    Thanks
    10
    Thanked 78 Times in 76 Posts
    The background shorthand IS irrelevant. I've used it for too many years to know it works just fine when coded correctly. The code on http://www.cssstickyfooter.com/ also works just fine. Problems with other people's code always winds up being caused by your own coding which can not be checked at this time. As, abduraooft said, a link to site will give us something to work with.
    ☠ ☠RON☠ ☠

  • #4
    Regular Coder
    Join Date
    May 2010
    Location
    Bathurst, Australia
    Posts
    180
    Thanks
    1
    Thanked 22 Times in 22 Posts
    It's not a problem anymore, like I said, it's fixed...by expanding from the shorthand. Was just asking out of curiosity mostly. But yes the rest of my css is pretty much rubbish, especially at the moment. There's a lot of pointless, meaningless, and redundant code in it. If that is the explanation for the disappearing background, i'm willing to accept that :P


  •  

    Posting Permissions

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