title: Center css chevron in div
body: <p>I have based <a href="http://jsfiddle.net/8c2r3m5d/" rel="nofollow">this chevron</a> off some code from <a href="https://css-tricks.com/examples/ShapesOfCSS/" rel="nofollow">here</a>, and changed it to use it as navigation in a carousel. However, I'm struggling to center it in the gray area. Preferably it would be centered horizontally with a little padding to the edges.</p>
  
  <p>I tried to wrap the chevron in another div, but with no success.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.chevron {
    position: absolute;
    text-align: center;
    padding: 12px;
    margin-bottom: 6px;
    height: 44px;
    width: 109px;
    top: 242px;
    background: #545454;
  }
  .chevron:hover:before,
  .chevron:hover:after {
    background: blue;
  }
  .chevron {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
  }
  .chevron:before,
  .chevron:after {
    content: '';
    position: absolute;
    top: 0;
    height: 17%;
    background: red;
  }
  .chevron:before {
    left: 0;
    width: 51%;
    -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 {
    right: 0;
    width: 50%;
    -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>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="chevron"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>