SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    May 2000
    Location
    Toronto
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When I use the Background fixed property:

    { background: url("image.jpg"); background-repeat: no-repeat }

    Netscape makes the rest of the background (in a frame) black. This is rather ugly as you can imagine. How do I get around this aweful Netscape problem (as usual)?

    Thanks


  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Netscape 4.XX doesn't support the no-repeat property properly. Netscape 6 will though. This is just another case where you have to think your design elements through carefully to make sure they look good in multiple browsers. What color are you setting your background to? Even though you have a background image you should still set your background color to one that closely matches the dominant color in your image. This will provide consistancy in your pages.

    ------------------
    Wayne Luke - Sitepoint Moderator/Internet Media Developer
    Digital Magician Studios - Making Magic with Web Applications
    wluke@digitalmagician.com

    [This message has been edited by wluke (edited June 29, 2000).]

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    WA
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It might work if you put your background in a div.

    I've used this inside a table cell and it works (in NS 4.7 & IE 5.0):
    div.background {background: url(somepic.gif) #ffffff center top no-repeat;}

    This string places the graphic at the top of the cell, centered, and it doesn't repeat. Whether or not it will work for the whole page I have no idea as I haven't tried it.

    hth

    Bimjo

  4. #4
    SitePoint Enthusiast
    Join Date
    May 2000
    Location
    Toronto
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm setting the background color to white (the color of the backround image) and it still turns to black. Hmmmm

    What CSS can I use instead of no repeat?

    Thanks


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
  •