
Developers often have sets of things they want to present to a user, and the typical way is to process each element and then put some kind of vertical space (e.g. hr or p). Many times, these developers want an easy way to display more information without all the vertical space. Image thumbnails, for example, that are 20 pixels wide, don't need their own 'row' in most HTML interfaces. So what we want to do is say "let's display n of these per row, and when we reach n, start a new row." Here is a code sample that will handle any number of elements, and any number of columns. Download the code and try it out; just change the first two valu..
|