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

281
Views
react-grid-layout : render grid line in grid unit instead of pixels

I currently render my grid line using pure css, click this link for my codesandbox. But this is not accurate as this grid is being render in pixels, not grid unit.

my css

.container {
  background-color: red;
  width: 1000px;
  height: 3000px;
  background-image: repeating-linear-gradient(#ccc 0 1px, transparent 1px 100%),
    repeating-linear-gradient(90deg, #ccc 0 1px, transparent 1px 100%);
  background-size: 50px 50px;
}

.react-grid-layout {
  background: none !important;
}

Is there any way to render the grid line so when my grid item is being render, it will reflect accurately.

For example, if i define w:2, h:4, x:0, y:0 my grid item will fit nicely.

Below image shows that I have import my style.css To those who say they cant see my style.css

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

0

I went through codesandbox you provided. You forgot to import your css file in index.js. Add this line add the end of the import section in index.js

import './styles.css';
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!