Treehouse: Grow your CSS skills. Land your dream job.


  • # November 10, 2011 at 3:06 pm

    I can’t figure out why the comment box is so huge and why it keeps covering the jpeg above. Any suggestions?

    click here for example

    # November 10, 2011 at 3:07 pm

    Sorry, here’s the link

    # November 10, 2011 at 3:17 pm

    It doesn’t have a width assigned to it, so it’s taking up all of the available space. Since your image is being floated to the left, it is taken out of the flow of the document, so your comment box has nothing to butt up against – hence it being full width.

    # November 10, 2011 at 3:20 pm

    Try adding a “clear:both” to the comment box and just set a specified width.

    # November 10, 2011 at 3:29 pm

    Just adding ‘float: right’ to the comments-wrap like so will fix it:

    #content #comments-wrap {
    padding-top: 10px;
    float: right;

    This is located on line 485 of your style.css

    # November 11, 2011 at 5:48 pm

    Thanks Johnnyb that worked, you’re the man.

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

You must be logged in to reply to this topic.