Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

193
Visualizações
images moves when resiging the window when using display

this is my sass and html code.

i would like to know why my caroulsel images moves to left when i resize the window can anyone help me ? i have search multiple stackoverflow but couldnt find the answer for it. somehow the image doesnt resize acordingly and moves to left . i would like to know how can i keep the image on the same position when reisizng the window.

.carousel-wrapper {
  position: relative;
  // margin: auto;
  border: 4px solid red;
  overflow: hidden;
  //ul
  .facebook_album_list {
    display: flex;
    .album_list_item {
      min-width: 100%;
      a {
        img {
          width: 100%;
          aspect-ratio: 16/9;
          max-height: 300px;
        }
      }
    }
  }
  .carousel_button {
    position: absolute;
    z-index: 2;
    height: 100%;
    cursor: pointer;
    display: grid;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    &:hover {
      .fa-solid {
        transform: scale(1.2);
      }
    }
    .fa-solid {
      font-size: 1rem;
      padding: 1rem;
      border-radius: 50%;
      transform: scale(1);
      background-color: rgb(212, 88, 0);
    }
  }
  #previousbtn {
    left: 0;
  }
  #nextbtn {
    right: 0;
  }
}
<div class="carousel-wrapper" aria-label="Photo gallery" data-carousel>
  <ul class="facebook_album_list album_list" data-carousel-list>

    <li class="album_list_item slide_item" data-carousel-list-item>
      <a href="">
        <img class="album_list_item_img" data-carousel-img src="" loading="lazy">
      </a>
    </li>

    <li class="album_list_item slide_item" data-carousel-list-item>
      <a href="">
        <img class="album_list_item_img" data-carousel-img src="" loading="lazy">
      </a>
    </li>

    <li class="album_list_item slide_item" data-carousel-list-item>
      <a href="">
        <img class="album_list_item_img" data-carousel-img src="" loading="lazy">
      </a>
    </li>

  </ul>
</div>

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda