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

545
Views
How can I keep the div position over image section and preserve the position when resize the image?

I have the following issue:

I need to place some hot areas over an image that are clickable. The hot areas are normal divs positioned in a container over an image. The image is a background of the container and has object-fit: contain, and width: 100%, so it does not always fit perfectly inside the container (this is fine). I need to place the hot area and then when I scale up or down the container eg. change width and height that will also change the aspect ratio, I need to readjust the buttons so they are positioned on the exact same spot again! All units for the buttons (width, height, X, Y) are in percentages.

I am attaching photos:

  1. The phone frame is with size: 1067px x 480px

enter image description here

  1. The phone frame is with size: 640px x 360px The buttons should be positioned on the correct spot

enter image description here

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!