html - Display results in 2 columns in one div -


i have problem displaying children in parent div.

here source: jsbin

this items collapsible panels. when of them collapsed, works great, try extend first or second.

if expand first, third goes right. if expand second, third goes down.

is there way keep on beginning?

only thing have figured out, keep them in 2 separate divs, problem using , hard split results 2 groups;

http://jsbin.com/foboqoxi/1

change second class="item" class="item2".

.item2 {    float: right;   clear: right;   width:45%;   margin-right: 20px; } 

and add clear left in class="item"

.item {   float: left;   clear: left;   width:45%;   margin-right: 20px; } 

html:

<div class="item2">     <div class="panel panel-default">         <div class="panel-heading" data-toggle="collapse" href="#collapse-01c6530e-007e-4553-98a7-e7bd0273d3cf">             <div class="heading">                 second             </div>             <span class="icon"><span class="caret-big caret-down"></span></span>         </div>         <div id="collapse-01c6530e-007e-4553-98a7-e7bd0273d3cf" class="panel-collapse collapse">             <div class="panel-body alternative">                 <div class="info">                     <div class="name">                         aa                     </div>                     <div class="value">                         second                     </div>                 </div>                 <div class="info">                     <div class="name">                         aa                     </div>                     <div class="value">                         second                     </div>                 </div>             </div>         </div>     </div> </div> 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -