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

103
Views
No scroll on the x direction

I am using this javascript to zoom in:

function zoomin() {
var GFG = document.getElementsByClassName("ImageClass")[0];
var currWidth = GFG.clientWidth;
GFG.style.width = (currWidth + 100) + "px";}

The class "ImageClass" is directly located on an image

I have the following CSS:

.list-size {
width: 700px;
max-width: 700px;
height: 700px;
max-height: 700px;
overflow-y: scroll;
overflow-x: scroll;
text-align: center;
vertical-align: baseline;}

.ImageClass {
max-width: 2000px;
max-height: 2000px;}

the class "list-size" is colocated on a div that encloses several divs and end up enclosing the image.

When I zoom in, the vertical scroll appear but the horizontal scroll does not.

Can someone help?

Thanks

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

just needed to add style "display: flex" to the "list-size" class

about 4 years ago · Juan Pablo Isaza Report
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!