title: created stacked pixel grid to represent a count
body: <p>I'm creating a pixel grid to represent a count (see image) and wondering what's the best way to go about it.</p>
  
  <p><a href="https://i.stack.imgur.com/a1CZU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a1CZU.png" alt="pixel count"></a></p>
  
  <p>These tiles will need to be responsive (1px, 2px, 4px). I could build a super large sprite that contains all 196 combinations that is @4X so it scales perfectly to 2px and 1px and then build a css class...  </p>
  
  <pre><code>&lt;div class="pixel-block c-000"&gt;&lt;/div&gt;
  &lt;div class="pixel-block c-001"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>...there has to be a better way? </p>
  
  <p>Any ideas appreciated. </p>