This one CSS property will fix your z-index headache.
Ali
Открыть в X@alicalimli_dev23 тыс. подписчиков
17 112 просмотров
This one CSS property will fix your z-index headache.
In CSS, a child element with z-index will overlap with any fixed or floating elements outside its container.
Instead of stacking higher and higher values to fix it.
Use this instead:
.card-container {
isolation: isolate;
}
With that, any elements with z-index inside the container will be contained.
If you found this useful, follow for more. ❤️
Комментарии
Комментарии из оригинального поста в X (Twitter)
Комментариев пока нет
