Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

282
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda