Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Can’t keep an image from spilling out of div

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38219
    ScottyChoc
    Participant

    Can’t seem to figure out how to make the div include the whole height of the image. Here is a screenshot, this should be able to explain my issue: http://loveless.org/media/Picture2.png


    Meet our Staff





    • Dennis Loveless, DVM



      As owner of the D-Railed Ranch...



    ul.profiles li {
    border: #ccc solid 1px;
    margin: 8px 0;
    padding: 8px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    }
    ul.profiles img {
    margin-right: 8px;
    }

    ul.profiles li h2 {
    font-weight: bold;
    margin-bottom: 8px;
    }
    .left {
    float: left;
    }

    #103483
    Senff
    Participant

    Adding overflow:hidden; to ul.profiles li should do the trick to clear floats.

    #103490
    ScottyChoc
    Participant

    worked perfectly! Thanks for the quick help!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.