Please expand the jsfiddle to see box in action, http://jsfiddle.net/5fp37/.
I want the blue border boxes to align side by side, but I dont want to mention a width to the boxes.
This fiddle works ok but as soon as I remove the width:400px
, both boxes get on top/bottom of each other. Any clue?
dont want to specifiy width of any thing. board or box. just a minimum width of box, because ther could be unkown number of boxes. and each would alight side by side
Nor want the divs to change position when page is re sized. verticals always align vertically and horizontals always align horizontally regardless of parent or child items / width.
Vertical boxes go side by side and horizontal ones go top/bottom of each other. Regardless of container size or number of their own children (task div
s in this case)
It seems like impossible. Is there a way?
wanted to do this:
http://leankit.com/blog/2010/12/10-kanban-boards-leankit-kanban-style/
.board{
display:block;
margin-right:5px;
margin-left:5px;
margin-top:10px;
margin-bottom:10px;
border: red solid thin;
min-height:510px;
}
.box{
margin-right:5px;
margin-left:5px;
margin-top:10px;
margin-bottom:10px;
border: blue solid thin;
min-height:500px;
min-width:160;
width:400px;
}
.box-virtical{
display:inline-block;
float:left;
}
.box-horizontal{
display:block;
}
.task{
margin-right:5px;
margin-left:5px;
margin-top:10px;
margin-bottom:10px;
display:block;
float: left;
border: green solid thin;
width:150px;
height:100px;
}
<div class="board">
<div class="box box-virtical">
<div class="task">
</div>
<div class="task">
</div>
<div class="task">
</div>
<div class="task">
</div>
<div class="task">
</div>
</div>
<div class="box box-virtical">
<div class="task">
</div>
<div class="task">
</div>
<div class="task">
</div>
<div class="task">
</div>
<div class="task">
</div>
</div>
</div>