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

166
Visualizações
How to create a gallery of square windows for rectangular images in HTML CSS JS. Each window to have a separate modal image which pops up on clicking

So I have a few images which have different sizes and aspect ratios. I want to create a modal gallery of square thumbnails of those images in a grid form. When the user clicks on a thumbnail, the image should pop up on the screen with its original aspect ratio. Kind of like how twitter's desktop website displays your media thumbnails on your profile on the top right, next to your twitter banner. Now, I know how to do all of this except that I want each modal image to be contained(even cropped, and not overflowing) in a square thumbnail, and when the user clicks it, the actual image with its actual size/aspect ratio should pop up. I don't know how to create that square thumbnail modal window with the image not overflowing it.

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