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

219
Views
How do I retrieve background size value in Javascript?

I have defined background size of an image inside a div element to 150%

#div-backgound {
    background-image: url('img.jpg');
    background-position: center 0px;
    background-size: 150% 150%;
    height: 120px;
    width: 120px;
}

I can not retrieve values from:

document.getElementById("div-background").style.backgroundSize;

How do I retrieve the value 150% from background-size properties in javascript?

almost 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!