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

143
Views
why i cant resize lightbox images?

I'm using lightbox for Bootstrap 5. According to this site, if you add a line of code to your java script, you can choose which size you want to output sm lg or xl full screen. I did add it to my js, but nothing happened. Did I do something wrong, or am I missing something?

the code founded on the website that i am using to resize but its not working

        const options = { 
            keyboard: true, 
             size: 'sm'};

  document.querySelectorAll('.my-lightbox-toggle').forEach((el) =>el.addEventListener('click', (e) => { e.preventDefault();
  const lightbox = new Lightbox(el, options);
  lightbox.show();
  }));

please check my codepen for the example link

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!