D
D
dmitry1002021-07-11 21:23:25
css
dmitry100, 2021-07-11 21:23:25

We need transparency for cards, but not for the images in them, how best to prescribe?

Where I would like to try a white background with transparency, but did not understand how best to do it, where to set opacity. If in the cards themselves, then the transparency will also be in the images embedded in the cards on a white background (background: whit), but you need it as from the picture where video auto play the picture is taken there
60eb36d6a8280103788928.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-07-11
@dmitry100

background: rgba(255, 255, 255, 0.5);
opacityhowever, it is inherited without options, and therefore if you want to use it, you will have to seriously mess up the layout - dividing it into two blocks: transparent and not, and overlaying them by positioning each other.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question