Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

283
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda