Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

grid item overlapping others in css grid on scale [SOLVED]

I’m trying to build a css layout where, when hovering on an item, it scales up. The problem is that, as you can see on the image, it looks like the z-index is higher on the right and the bottom child.

An easy fix could probably be changing the z-index of each element, but the the list is rendered on react, so I can’t change it on each child.

Grid item overlapping example

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can add a higher value of z-index when hovering in your css where you have the scale-up transformation.

.item:hover {z-index: 10} // or a higher value depending the z-index of the other elements
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading