SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Div problem in IE6

    Hi all,

    I am having a problem just on one div on my page and it only in IE6 its fine in IE7 and firefox like always.

    Please see the link below
    http://www.istl.com/css/view-product.php?ID=46

    On this page in IE7 or FF you will see a div with a background colour which says related products but for some reason in IE6 you cannot see the background or text its just got a 1px line where it should be.

    Can anyone help please?

    Thanks
    Please reply asap if you can

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,367
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    HI,

    I'm not seeing any disappearing text but you have some strange code for that related box section. I would have assumed you wanted something like this:

    Code:
    #related-products {
    border:1px solid #999999;
    width:300px;
    float:left
    }
    You had it set as display:inline and then added a width which you can't do because when its inline then dimensions don't apply (unless its a float and then inline doesn't apply).

    You also had a border bottom which would have collapsed to the top and then you had floats inside your inline element. Usually if you do silly thing you get silly results


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
  •