Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Force DIVs to container's height - start new "column"

    Hello.

    I managed to place few DIVs, one below another in container DIV.
    The container DIV has fixed height (about the height of 2 inner DIVs).
    The problem is that the inner DIVs are drawn, in one "column", down and out of the container.

    How can I make them start new "column" when reaching the height of the container?

    Thanks.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    You might need to set float:left; and a width to the first column and a suitable margin-left on the other one.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •