By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,516 Members | 1,153 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,516 IT Pros & Developers. It's quick & easy.

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

P: 2
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.
Jul 10 '12 #1
Share this Question
Share on Google+
2 Replies


Iceman47
P: 2
can you explain more
Jul 11 '12 #2

ariful alam
100+
P: 185
am1974po has a DIV (DIV1) in a page that hold two more DIV (DIV2 & DIV3) in a column layout.

The container DIV (DIV1) has a fixed size in height, suppose 300px. now if the inner DIV's height become greater than 300px, then those have to show their content in columns.

CSS3 can show the contents in a div in columns. you may use JavaScript to check the inner div's height greater than the container div or not. And if, greater than, then use CCS3 column setting.
Jul 11 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.