Results 1 to 5 of 5

Thread: [Solved] background image problem

  1. #1
    Join Date
    Dec 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [Solved] background image problem

    hello, i am having trouble displaying my background image, which by the way works fine on IE, but not on FF and Opera where it all shows a white background.
    Code:
    body {
    		  margin:0;
    		  padding:0px 0;
    		  text-align:center;	
    		  color:#F0F0EE;
    		  /*background:#3E3F3A; /*DCD9C8*/*/
    		  background-image:url(images/bg_img.jpg)
    		}
    Any ideas on how to fix this please? many thanks.
    Last edited by moisea; 12-31-2006 at 01:33 AM. Reason: [Solved]

  2. #2
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    moisea, I'm having a similar problem with a background-image in CSS. I'm using PNGs for my backgrounds and while it shows up in IE using the alphaimageloader filter for IE it doesn't show up as a plain PNG image in firefox.

    What did you do to yours to fix it? I'm hoping it can give me an idea on how to fix my problem.

    Thanks
    RH5

  3. #3
    Join Date
    Dec 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi, i've just deleted this line:
    /*background:#3E3F3A; /*DCD9C8*/*/

    i don't use png images maybe, if i see a bit of code where u used the bg img line, i might help.
    thx.

  4. #4
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    That's a comment, it has nothing to do with the actual script. Comments in css are denoted like this: /*comments here*/
    - Mike

  5. #5
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Ah, I just read the original post. You have to put quotes around the bg image:
    Code:
    background-image:url("images/bg_img.jpg")
    - Mike

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
  •