title: How to move carousel arrows further apart?
body: <p>I am a beginner and want to ask how do I move the arrows further apart from the text? Like the left arrow more to the left and the right arrow more to the right? When on full desktop view I want the arrow to be further away from the middle and stay in that position when on response mode. It seems like whatever I do it doesn't work, padding, margin etc.</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>let sliderImages = document.querySelectorAll(".slide"),
    arrowLeft = document.querySelector("#arrow-left"),
    arrowRight = document.querySelector("#arrow-right"),
    current = 0;
  
  //Clear all images
  function reset() {
    for (let i = 0; i &lt; sliderImages.length; i++) {
      sliderImages[i].style.display = "none";
    }
  }
  // initialize slider
  function startSlide() {
    reset();
    sliderImages[0].style.display = "block";
  }
  
  //show previous
  function slideLeft() {
    reset();
    sliderImages[current - 1].style.display = "block";
    current--;
  }
  
  //show next
  function slideRight() {
    reset();
    sliderImages[current + 1].style.display = "block";
    current++;
  }
  
  //left arrow click
  arrowLeft.addEventListener("click", function () {
    if (current === 0) {
      current = sliderImages.length;
    }
    slideLeft();
  });
  
  //right arrow click
  arrowRight.addEventListener("click", function () {
    if (current === sliderImages.length - 1) {
      current = -1;
    }
    slideRight();
  });
  
  startSlide();</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#slider,
  .wrap,
  .slide-content {
    max-width: 1000px;
    position: relative;
    margin: auto;
  }
  
  .wrap {
    position: relative;
  }
  
  .slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .arrow {
    cursor: pointer;
    position: absolute;
    top: 46%;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 1;
  }
  #arrow-left {
    border-width: 30px 40px 30px 0;
    border-color: transparent #cccccc transparent transparent;
    left: 0;
  }
  
  #arrow-right {
    border-width: 30px 0px 30px 40px;
    border-color: transparent transparent transparent #cccccc;
    right: 0;
  }
  
  /* Caption text */
  .text {
    position: relative;
    color: #212529;
    font-size: 18px;
    top: 28px;
    width: 100%;
    text-align: center;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 400;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;main class="main"&gt;
  
    &lt;div class="wrap"&gt;
      &lt;div id="arrow-left" class="arrow"&gt;&lt;/div&gt;
      &lt;div id="arrow-right" class="arrow"&gt;&lt;/div&gt;
      &lt;div id="slider"&gt;
        &lt;div class="slide slide1"&gt;
          &lt;div class="slide-content"&gt;
  
            &lt;div id="container"&gt;
              &lt;img class="background-image" src="image1" alt=""&gt;
            &lt;/div&gt;
            &lt;div class="text"&gt;image1&lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
        &lt;div class="slide slide1"&gt;
          &lt;div class="slide-content"&gt;
            &lt;div id="container"&gt;
              &lt;img class="background-image" src="image2" alt=""&gt;
            &lt;/div&gt;
            &lt;div class="text"&gt;image2&lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
      &lt;/div&gt;
  
    &lt;/div&gt;
  
  &lt;/main&gt;</code></pre>
  </div>
  </div>
  </p>