Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!