Layout problem (not sure if this is CMSB related!)

6 posts by 3 authors in: Forums > CMS Builder
Last Post: August 30, 2016   (RSS)

By Steve99 - August 29, 2016

Hello,

Definitely not CMSB related. It's HTML/CSS/Content.

The issue you're seeing is related to the amount of content per column container. Since you have one row with all the "col" containers within, they wrap and float left.

In "desktop view" the 5th bio listing is being "caught up" by the 2nd bio listing. (you can see this by using the Web Developer tools built into the browser and enabling the Outline of Block Elements, and comparing the pre and post pages you posted - you can see the amount of content within the bio box has changed).

There are different ways you could approach this. One would be to use PHP increment and output a close/open div for another row every 4 listings (this would help for the desktop view - but you may possibly run into a container getting "caught up" on the tablet view with the collapsing responsive layout). Could try min/max height values for the bio listings as well. Many other CSS/HTML solutions as well.

Hope this helps!

Cheers,
Steve

Thanks for the detailed feedback, Steve. That was really helpful. :-)

By Toledoh - August 29, 2016

FYI.  I use http://brm.io/jquery-match-height/ for this issue.  Rather than fixing a height, this identifies the highest div, then makes the others in that row the same height.

Cheers,

Tim (toledoh.com.au)

By Steve99 - August 30, 2016

Good resource Tim, bookmarked - thanks for sharing. We've also used flexbox with BS for similar needs (some with a JS fallback though).

Cheers,
Steve

Thanks, Toledoh! I'll look into this.