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

227
Vistas
CSS Columns: box-shadow is rendered faulty on Google Chrome (Masonry Layout)

I want to create a masonry layout with CSS Columns. Each item has a box-shadow and a random height (in the following CodePen I simulated this with exact heights).

And there's the problem: The box-shadows are appended to the wrong column if the elements use different heights. I would even say that this is a rendering issue in Google Chrome?

Do you have any idea, how to solve this issue in context of the idea to have a masonry layout?

https://codepen.io/malte94/pen/yLomKJe

enter image description here

.box {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  min-height: 200px;
  margin: 10px;
}

.columns {
  display: block;
  column-count: 3;
  page-break-inside: avoid;
  break-inside: avoid;
  overflow: hidden;
}

.columns * {
  display: block;
  max-width: 100%;
  page-break-inside: avoid;
  break-inside: avoid;
  overflow: hidden;
  margin: 10px;
}
<div class="columns">
  <div class="box" style="height: 200px;"> Hey there! </div>
  <div class="box" style="height: 400px;"> Hey there! </div>
  <div class="box" style="height: 500px;"> Hey there! I'm broken </div>
  <div class="box" style="height: 100px;"> Hey there! </div>
  <div class="box" style="height: 50px;"> Hey there! </div>
  <div class="box" style="height: 250px;"> Hey there! </div>
</div>

about 4 years ago · Juan Pablo Isaza
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