PDA

View Full Version : CMS bricked layout?


Thr33
03-29-2017, 08:16 PM
i am using 3 columns to display articles on the content.php. Unfortunately they're static to rows and the second line fits to the grid at the bottom of the lowest article:

|ooooooo| |ooooooo| |ooooooo|
|ooooooo| |ooooooo| |ooooooo|
|ooooooo| |ooooooo|
|ooooooo|
------------------------------------
|ooooooo| |ooooooo| |ooooooo|
|ooooooo| |ooooooo|
|ooooooo|
------------------------------------

I want to 'break the mould' and have it fit to the columns but still have the article arranged left to right from date published.

|ooooooo| |ooooooo| |ooooooo|
|ooooooo| |ooooooo| |ooooooo|
|ooooooo| |ooooooo| -----------
|ooooooo| ----------- |ooooooo|
----------- |ooooooo| |ooooooo|
|ooooooo| |ooooooo| -----------
----------- |ooooooo| |ooooooo|

I hope your get the point, like Pinterest. How can it be done?

webmastersun
04-10-2017, 12:55 PM
I want to 'break the mould' and have it fit to the columns but still have the article arranged left to right from date published.

|ooooooo| |ooooooo| |ooooooo|
|ooooooo| |ooooooo| |ooooooo|
|ooooooo| |ooooooo| -----------
|ooooooo| ----------- |ooooooo|
----------- |ooooooo| |ooooooo|
|ooooooo| |ooooooo| -----------
----------- |ooooooo| |ooooooo|

I hope your get the point, like Pinterest. How can it be done?

Did you hear about twitter bootstrap pinterest layout?

Searching this on Google, there is a JS library can help you build layouts (columns) like that.