D
D
danilstep2018-02-07 19:02:00
css
danilstep, 2018-02-07 19:02:00

How to make the contents of a block opaque while the block itself is transparent?

Hello, I got into such an unpleasant situation - I made the block with the content transparent, but in the end all the child elements became transparent too. And changing the opacity does not react in any way to child tags.
PS Maybe for the text it's beautiful, but the pictures are not at all in the subject.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Boychenko, 2018-02-07
@danilstep

If you mean a transparent background for the parent block, then you need to set it not through opacity for the entire block, but through background: rgba (0,0,0,0.5), where the last value is transparency, and the first three are color in RGB . But it's still hard to understand without an example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question