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

129
Views
How Can I Place Input Fields Onto Specific Spots On An Image?

How Can I Place Input Fields Onto Specific Spots On An Image?

I'm looking to figure out a way to bind input fields to an image in specific locations. These locations would be parallels to icons on the image. This would be a way to be a visual guide to users looking to enter the width, height and length of an object. It must also adapt to various screen sizes.

I looked into the html 5 function of an image map. I believe using, "margin-top" and "margin-left".ect in css with classes I could plop items in the right places on my screen, but, the idea would be to place these items in the same area on screens with different widths and heights. This would not be possible with negative margins / padding as it would look strange on screen sizes other than my own.

I know with pixel mapping someone can place a link in a certain area of an image or trigger a script in a certain area of an image. Is it possible to give an input field an id or class and then place that input field onto the image with javascript or something? Maybe like get a copy of the screen dimensions and then transpose it after the fact. Another idea would be to move it there after the dom load with an animation or a transition in css.

Is there some way to use the image map functionality in html5, along with css @media sizes, to do this or is there some other method that would make this a cakewalk?

enter image description here

about 4 years ago · Santiago Trujillo
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!