title: How to center a slick slider full width?
body: <p>I'm trying to build a special fullwidth carousel with slick(centerMode) : <a href="http://kenwheeler.github.io/slick/" rel="nofollow noreferrer">http://kenwheeler.github.io/slick/</a>.</p>
  
  <p>My problem is that the image are floated Left when i wanted to see all the slider and all the image on my fullwidth without any float.
  Like the picture 
  Thanks
  <img src="https://i.stack.imgur.com/PhHoS.png" alt="This how i want the slider"></p>
  
  <p>I have already implement the slider : check by screen>2000px you will understand what i mean .
  <a href="https://jsfiddle.net/voldemort95/69ucj3zt/9/" rel="nofollow noreferrer">https://jsfiddle.net/voldemort95/69ucj3zt/9/</a></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-js lang-js prettyprint-override"><code>$('.slider').slick({
    slidesToShow: 4,
    autoplaySpeed: 550,
    rtl: false,
    slidesToScroll: 2,
    arrows: false,
    infinite: true,
    centerMode: true,
    variableWidth: true,
    infinite: true,
    focusOnSelect: true,
    touchMove: true,
  });
  function slickPause() {
      $('.slider').slick('slickPause');
  }
  slickPause();
  $('.slider').mouseover(function() {
      $('.slider').slick('slickPlay')
  });
  $('.slider').mouseout(function() {
      slickPause();
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
    box-sizing: border-box;
  }
  
  
  
  body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
  }
  
  [class="slick-active"] {
         background: black;
  }
  
  .wrap {
    position: relative;
    z-index: 100;
    width: 100%;
    height: 100%;
    padding: 0 60px;
     background-color: #230e2c;
    -webkit-background-size: cover;
    background-size: cover;
    overflow: hidden;
  }
  
  .slick-activeafter{
    background: red
  }
  .item.slick-slide.slick-center + .slick-slide {
  transform:"";
      /* z-index: 10; */
  }
  .wrap:after {
    content:'';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
  }
  
  .slider {
    position: relative;
    z-index: 200;
    padding: 0 0px;
    margin: 5rem auto;
    max-width: 100%;
    width: 100%;
  }
  
  .slick-arrow {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 50px;
    line-height: 50px;
    margin-top: -25px;
    border: none;
    background: transparent;
    color: #fff;
    font-family: monospace;
    font-size: 5rem;
    z-index: 300;
    outline: none;
  }
  
  .slick-prev {
    left: -50px;
    text-align: left;
  }
  
  .slick-next {
    right: -50px;
    text-align: right;
  }
  
  .item.slick-slide {
    width: 400px;
    height: 400px !important;
    transition: transform .4s;
    position: relative;
  }
  
  .slick-slide:after {
    content:'';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: solid 1px #979797;
    background-color: rgba(255, 255, 255, 0.11);
    transition: transform .4s;
  }
  
  .item.slick-slide {
    transform: scale(0.7)  translate(640px);
  }
  
  .slick-slide.slick-current {
      opacity: 1;
  }
  .item.slick-slide.slick-center + .slick-slide {
    transform: scale(0.8) translate(-250px);
    z-index: 10;
  }
  
  .item.slick-slide.slick-center + .slick-slide + .item.slick-slide {
    transform: scale(0.7)  translate(-640px);
    z-index: 5;
  }
  
  .item.slick-slide.slick-active {
    transform: scale(0.8) translate(250px);
  }
  
  .item.slick-slide.slick-center {
    /* margin: 0 -10%; */
    transform: scale(1);
    z-index: 30;
  }
  .slick-center{
    border: solid 1px #979797;
    background-image: linear-gradient(to bottom, #ffffff, #d9d9d9);
  }
  
  .slick-center .description{
    display: inline-block;
    color : #5b1f74;
  }
  
  .slick-center .title{
    color : #5b1f74;
    font-size: 40px;
  
  }
  
  .slick-center .img{
    display: inline-block;
  }
  .slick-slide img {
       display: none;
  }
  p.title{
    position: absolute;
    text-align: center;
    color: #fff;
    left: 37%;
    font-size: 20px;
    top: 50%;
  }
  p.description{
    position: absolute;
    text-align: center;
    color: #fff;
    bottom: 0;
    font-size: 20px;
    display: none;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"&gt;&lt;/script&gt;
  &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css" rel="stylesheet"/&gt;
  &lt;div class="wrap"&gt;
    &lt;div class="slider"&gt;
  
      &lt;div class="item"&gt;
        &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="item"&gt;
        &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
      &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
      &lt;div class="item"&gt;
        &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
      &lt;div class="item"&gt;
        &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
      &lt;div class="item"&gt;
        &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
      &lt;div class="item"&gt;
        &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
      &lt;div class="item"&gt;
        &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
      &lt;div class="item"&gt;
        &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
      &lt;div class="item"&gt;
        &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
      &lt;div class="item"&gt;
        &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
      &lt;div class="item"&gt;
        &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
      &lt;div class="item"&gt;
       &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
      &lt;div class="item"&gt;
      &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
      &lt;div class="item"&gt;
       &lt;img src=".." class="img" style=" width: 97px;height: 155px;    position: absolute;
      left: 36%;" alt=""&gt;
        &lt;p class="title"&gt;TEST&lt;/p&gt;
        &lt;p class="description"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna&lt;/p&gt;
  
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>