Change box flow from float to inline-block

Change the flow of boxes to use inline-block rather than float, to support
varying height for boxes while keeping a sensible flow. This is to support
expandable content.