How to create cube with only HTML and CSS?
<p><a href="https://i.stack.imgur.com/6iIFO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6iIFO.png" alt="CSS cube"></a> </p>

<p>I have this and I want to <strong>make a cube with HTML &amp; CSS only</strong> like in the above image. My best <a href="https://jsfiddle.net/8vuj7peb/14/" rel="noreferrer">try</a>:</p>

<p><div class="snippet" data-lang="js" data-hide="true" data-console="false" data-babel="false">
<div class="snippet-code snippet-currently-hidden">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.mainDiv{
  position: relative;
  width: 206px;
  height: 190px;
  margin: 0px auto;
  margin-top:100px;
}
.square{
  width:100px;
  height:100px;
  background:#c52329;
  border:solid 2px #FFF;
  float:left;
  transform: skew(180deg,210deg);
  position: absolute;
  top: 43px;
}
.square2{
  width:100px;
  height:100px;
  background:#c52329;
  border:solid 2px #FFF;
  float:left;
  transform: skew(180deg,150deg);
  position: absolute;
  left:102px;
  top: 43px;
}
.square3{
  width:100px;
  height:100px;
  background:#c52329;
  border:solid 2px #FFF;
  float:left;
  transform: skew(180deg,180deg);
  position: absolute;
  left: 51px;
  top: -61px;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="mainDiv"&gt;
  &lt;div class="square"&gt;&lt;/div&gt;
  &lt;div class="square2"&gt;&lt;/div&gt;
  &lt;div class="square3"&gt;&lt;/div&gt;
&lt;/div&gt;</code></pre>
</div>
</div>
</p>