31 users online (0 members and 31 guests)  


  Results 1 to 3 of 3
  1. #1
    philbert25's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2006
    Posts
    16

    can't contain the img

    I am using a lot of pages that have a roster or some variation of a roster. I have set up a div class named .playerinfo, that is supposed to contain the image and list within it. However, on pages that have a short list, the img breaks out of the div. This happens in IE6 but not Firefox. I am using overflow: hidden and clear: both on my .playerinfo class, but still no luck. I am including a link to one of the pages this applies to. Any help would be greatly appreciated.

    http://www.jalc.edu/athletics/staff.html



  2. #2
    philbert25's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2006
    Posts
    16

    Re: can't contain the img

    I fixed the problem by adding float: left; and width: 100%; to the playerinfo class. I also had to change the bottom margin of .playerinfo ul to 0 to make the spacing for the bottom to come out right in IE6.

  3. #3
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: can't contain the img

    Thanks for sharing the fix, I am glad you got it working.

    D
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting



Tags for this Thread