title: Grid - HTML | CSS
body: <p><a href="https://i.stack.imgur.com/DoDat.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DoDat.jpg" alt="enter image description here"></a></p>
  
  <pre><code>&lt;div class="container"&gt;
   &lt;div class="item half-width"&gt;1&lt;/div&gt;
   &lt;div class="item half-width"&gt;2&lt;/div&gt;
   &lt;div class="item half-width"&gt;4&lt;/div&gt;
   &lt;div class="item half-width"&gt;5&lt;/div&gt;
   &lt;div class="item half-width"&gt;6&lt;/div&gt;
   &lt;div class="item full-width"&gt;7&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How do I write css for the html content so that I can get the above output as show in the picture which is scrollable in x direction. After once DOM is rendered completely , may be at some point of time , I need to remove the element  4 , so that 5 come in front and auto align. </p>