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

div Positioning help

  • # February 29, 2012 at 11:46 am

    I wrote a book and designed this simple site to promote it … could someone help me out with why the column below the image of book cover is not aligning correctly? It’s either nudged too far to the left or too far to the right, depending on the browser/resolution/zoom. A little Fiddle maybe? ;) Thanks!


    # February 29, 2012 at 11:52 am

    Line 19 of your style.css has a margin of 20px to the left. If you remove it, the columns move to the left and looks more like it should.

    Kinda need to know how you want it to look though if that isn’t it.

    # February 29, 2012 at 11:56 am

    Thank you sir! I’ll comment again if this didn’t do the trick, otherwise I really appreciate your help!


    # February 29, 2012 at 12:20 pm

    @webtmc That was it! However it revealed a second problem: I had my overflow hidden to allow for the auto height of the containing div – removing that solved my problems. Thank you very much. Sometimes you just need to step back and let another coder have a look – you get lost in that stuff sometimes :). Thanks again, my friend!

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

You must be logged in to reply to this topic.