S
S
sorry_i_noob2019-09-11 22:13:48
JavaScript
sorry_i_noob, 2019-09-11 22:13:48

There are cards on the site. The cards have a shadow. How to make sure that the shadow from one card does not fall on another card?

What is happening now:
5d7948b65b88b903622943.png
The shadow from one card comes to other cards (blackout is visible in the corners). Is there anything that can be done to prevent this from happening? So that the shadow was under the cards. How to do it? I tried making the after element with position: absolute, width: 100% and height: 100%. I added a shadow to it, made z-index 0. And for the cards z-index: 1. Removed the shadow from the cards. And all the same, the shadow climbs onto other cards.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Alekseev, 2018-04-05
@Zatmil

Visual editor of regular expressions with examples https://uiregex.com/ru

R
Rustam Bainazarov, 2019-09-11
@sorry_i_noob

Make a shadow on a separate block with z-index: -1.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question