Grow your CSS skills. Land your dream job.

spacing for image

  • # June 4, 2013 at 8:15 pm

    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!

    # June 4, 2013 at 8:55 pm

    Not sure quite what you’re after but removing the html part from your css makes the whole image appear.

    # June 4, 2013 at 10:09 pm

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

    # June 4, 2013 at 10:46 pm

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

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

    # June 4, 2013 at 10:54 pm

    Thank you very much my friend!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".