title: Creaing a Pyramid shape using only CSS/HTML
body: <p>I am trying to create a pyramid like shape in CSS. <em>I am doing it with a method I read about on internet that when you set the width of a Div to 0 px its borders will join creating 4 triangles.</em> But I want to remove/cut the pointed tip of the pyramid and I have been unable to do it. I tried hiding tip with other DIV but that does not looks right. </p>
  
  <p><strong>Present shape:</strong>
  Below is what I have made so far.</p>
  
  <p><a href="https://i.stack.imgur.com/jZyKJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jZyKJ.png" alt="enter image description here"></a></p>
  
  <p><strong>Required shape:</strong>
  What I want to make is a shape like this:</p>
  
  <p><a href="https://i.stack.imgur.com/DmEFZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DmEFZ.png" alt="enter image description here"></a></p>
  
  <p>Here is my code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#pyramid {
    width: 0px;
    border-left: 20px dotted transparent;
    border-right: 20px solid transparent;
    border-bottom: 50px solid blue;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="pyramid"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>