title: Fluid width with equally spaced DIVs + last row left aligned
body: <p>I have fixed width boxes in a fluid layout and text-align: justify them with this posted solution:</p>
  
  <p><a href="https://stackoverflow.com/questions/6865194/fluid-width-with-equally-spaced-divs">Fluid width with equally spaced DIVs</a></p>
  
  <p>But since I have a couple of more rows in a responsive layout. </p>
  
  <p>This is of course happens:</p>
  
  <pre><code>------    ------    ------    ------    
  |    |    |    |    |    |    |    |    
  |    |    |    |    |    |    |    | 
  ------    ------    ------    ------    
  ------    ------    ------    ------    
  |    |    |    |    |    |    |    |    
  |    |    |    |    |    |    |    | 
  ------    ------    ------    ------    
  ------          ------        ------    
  |    |          |    |        |    |   
  |    |          |    |        |    | 
  ------          ------        ------
  </code></pre>
  
  <p>But I like to have it like this:</p>
  
  <pre><code>------    ------    ------    ------    
  |    |    |    |    |    |    |    |    
  |    |    |    |    |    |    |    | 
  ------    ------    ------    ------    
  ------    ------    ------    ------    
  |    |    |    |    |    |    |    |    
  |    |    |    |    |    |    |    | 
  ------    ------    ------    ------    
  ------    ------    ------   
  |    |    |    |    |    |  
  |    |    |    |    |    |
  ------    ------    ------  
  </code></pre>
  
  <p>Of course justify does it's job but is there a solution to this without using javascript to do this?</p>
  
  <p>I thought text-align-last: left could work, but it doesn't and it's not official eather yet.</p>
  
  <p><strike><strong>Idea for a possible solution:</strong></p>
  
  <p>I came up with a possible javascript solution but I need your help for that.</p>
  
  <p>Here's my idea for a possible solution:</p>
  
  <p>To get the last line left aligned we would actually need to fill those missing spaces with invisible boxes. We could easily do that by hand but the number of divs are user generated and always different.</p>
  
  <p>So weed need to know the number of boxes that are missing and append them to those we already have, to make it work:</p>
  
  <p>So here is my (infantile) srcipting idea:</p>
  
  <pre><code>1. Count all divs
  2. Divide them with 4 (cause we have 4 in a row)
  3. If the SolutionA has no decimal, nothing will happen cause all is good
  4. If the SolutionA has a decimal, remove it
  5. SolutionA + 1 = SolutionB
  6. SolutionB x 4 (cause we have 4 each in a row) = SolutionC
  7. SolutionC - SolutionA = Number of divs we need to add.
  </code></pre>
  
  <p>I don't know if there is way to find out how many items are already in a row to pass that to javascript. This would be good cause then the formular would work for a responsive layout without adjusting the row number with each time they change with the browser width.</p>
  
  <p>Is this a good idea?</p>
  
  <p>I hope some would like to do this.</p>
  
  <p><strong>Here's a fiddle to work with:</strong> <a href="http://jsfiddle.net/L2mPf/" rel="nofollow noreferrer">http://jsfiddle.net/L2mPf/</a> </strike></p>
  
  <p>Thank you.</p>
  
  <p><strong>See my answer beyond.</strong></p>