Results 1 to 5 of 5

Thread: Background image works in IE but not in Firefox

  1. #1
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Background image works in IE but not in Firefox

    hey the problem is that Background image in body which is on seprate css file is working in IE but not in Firefox.. what is the solution?

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Please post a link to the page on your site or attach your code so we can check it out and help you.

  3. #3
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    hey mate.. your coming to Melbourne? im in Melbounre... here is the code.
    Code:
    body {
    background: url('bg.jpg') repeat-x top center; 
    background-color:#000000;
    text-align:justify; 
    font-family:Verdana;
    font-size:8pt;
    }

  4. #4
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    Try it without the quotes

  5. #5
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Hopefully, if I get into the uni of Melbourne I'm applying to ANU as well.

    Regarding your code, there's nothing wrong with it so that's not the problem. The most common issue when having a background in the body is that there is not enough content to fill it up. If you have an element inside the body, try giving it a height, say 500px. If you don't, add a div container with a height.

    If it still doesn't work, please post the entire code, even the markup, or, if you can, a link to your site.

    Good luck!

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
  •