Forums

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

Home Forums CSS spacing for image

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45296
    mdrd88
    Participant

    http://codepen.io/seraphzz/pen/bymgG

    The problem I have is when you expand the window the image gets cropped of by the next “post” div. I need the “post” div that contains the image to grow in width in order to accomodate the larger image.

    Thank you!

    #137667
    mdrd88
    Participant

    Okay, soory for not providing enough info. Basically I need “post” div to resize the width to match the image. Am I making sense?

    #137669
    daffy58
    Participant

    Change width for div.post from pixel to %
    Example:

    .post {
    background: #ccc;
    height: 90%;
    **width: 50%;**
    float: left;
    }

    #137670
    mdrd88
    Participant

    Thank you very much my friend!

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