How to implement MVC using pure Javascript?

Is it possible to implement the design used by Erly.com's collection, Pinterest or 1000memories using only CSS or very minimal JavaScript?

Ross Allen at Quora Visit the source

Was this solution helpful to you?

Other answers

Found this interesting so I looked around and found an article by a guy who suggests using a combination of CSS columns and display:inline-block: http://sickdesigner.com/index.php/2011/html-css/masonry-css-getting-awesome-with-css3/ It's super-simple, and only a few lines of css, BUT.... Your column width needs to be uniform like http://pinterest.com/. It does not work the same as the full-on masonry js plugins. There are browser-compatibility issues with display: inline-block. and the newer css columns. Here's a quick example I threw together based on his code: http://jsfiddle.net/dainbrain/u22ts/ Might be interesting to play around with it!

Dain Kennison

We had similar requests and released a jQuery plug-in for this type of layout. The code is very minimal and performance optimized, as requested. Take a look: http://www.wookmark.com/jquery-plugin

Christoph Ono

You can try: http://masonry.desandro.com/ http://isotope.metafizzy.co/ Or have a read in here:

Chang Huang

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.