title: How to create a custom shape - css
body: <p>I would like to create a custom shape like this image :</p>
  
  <p><img src="https://i.stack.imgur.com/k4tpa.jpg" alt="enter image description here"></p>
  
  <p>how can I do ?</p>
  
  <p>My CSS :</p>
  
  <pre><code>#chevron { 
    position: relative;
    text-align: center;
    padding: 12px;
    margin-bottom: 6px;
    height: 60px; 
    width: 200px; }
  
  #chevron:before { 
    content: ''; 
    position: absolute;
    top: 0; 
    left: 0;
    height: 100%;
    width: 51%;
    background: #337AB7;
    -webkit-transform: skew(0deg, 6deg);    -moz-transform: skew(0deg, 6deg);
    -ms-transform: skew(0deg, 6deg);
    -o-transform: skew(0deg, 6deg);
    transform: skew(0deg, 6deg); }
  
  #chevron:after { 
    content: ''; 
    position: absolute;
    top: 0; 
    right: 0;
    height: 100%;
    width: 50%;
    background: #337AB7;
    -webkit-transform: skew(0deg, -6deg); -moz-transform: skew(0deg, -6deg); -ms-transform: skew(0deg, -6deg); -o-transform: skew(0deg, -6deg); transform: skew(0deg, -6deg); }
  </code></pre>
  
  <p>My HTML file :</p>
  
  <pre><code>&lt;div id="chevron"&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>But my result isn't what I want :</p>
  
  <p><img src="https://i.stack.imgur.com/bSCTq.jpg" alt="enter image description here"></p>