SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Background images breaking up in IE

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2004
    Location
    London
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Background images breaking up in IE

    Hi

    I'm using background images to create curved boxes. There's 5 images in total - 4 corner images and one 'dot' that's repeated along the horizontal and vertical edges. There's 8 divs - one for each corner, one for the top and bottom (repeated horizontally), and one for the left and right (repeated vertically).

    In IE the borders for some of the boxes have gaps in them and I have no idea why. You can see this in action at: http://www.programmersheaven.com/csstest/display5.html.

    Any ideas?
    Webcredible for usability & accessibility.
    Read all about the Disability Discrimination Act (DDA)

  2. #2
    SitePoint Addict Caterwomtious's Avatar
    Join Date
    Dec 2001
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like it might be the peekaboo bug at work, so you could try the solutions offered at that link.

    I reckon you could fix it by making it simpler though - rather than the single pixel GIF, use a CSS border for the box:

    Code:
    border: 1px solid #000
    and keep the graphics for the corners. So long as your corner graphics have white backgrounds rather than transparent, it should work fine - and you can lose the extra divs.

    You need an apostrophe after "programmers" btw - as you have done in your title tag.

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2004
    Location
    London
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, Rick. A quick
    Code:
    position:relative; top:0;
    seems to have done the trick!
    Webcredible for usability & accessibility.
    Read all about the Disability Discrimination Act (DDA)

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
  •