SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with webpage background in Firefox

    First post! Woohoo! I'm obviously a Nu Bee...so please forgive:

    In my CSS, my <body> tag is this:

    body {
    background-color: white;
    font-family: verdana, helvetica, sans-serif;
    background-image: url(background.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    }

    In IE 8 it's centering my image (just as I wish) but in FF it's centering it up also sending it through the top of the page so I only see the bottom peaking out from the top. (I hope that makes sense.)

    Any suggestions?

    Thanks in advance.

  2. #2
    SitePoint Member
    Join Date
    May 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I figure it out. I hope I didn't waste anyone's time:-)

    For anyone else with the same problemo though, here's what worked for FF:

    background-position: center top;

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,622
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Glad you figured it out (and sorry we missed your thread, although you solved it within minutes ).

    In the future, with such vague questions as those, a link would be preferable so we can see the effect (or at least full HTML/CSS to replicate it (though since yours was an image based probelm a site would be best)

    And of course thanks for posting your solution to those who may come across this with the same issue
    Always looking for web design/development work.
    Willing to do it cheap to build portfolio!

  4. #4
    SitePoint Member
    Join Date
    May 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Will do, Ryan. Thanks for your help!


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
  •