N
N
Nikita Litvintsev2017-08-04 20:00:37
css
Nikita Litvintsev, 2017-08-04 20:00:37

How to highlight text below a block?

There are two blocks and text. One block with a background in the background, just above the text and in the foreground a block with a background-image (png), partially overlapping the text.
How to make it so that the user can select text on the site.
The HTML is something like this:

<div class="block__background-container"></div>
<h1>Text</h1>
<div class="block__background-container"></div>

Should be like this, but with a highlight
341e028ade594a8da198ff410cd4bc42.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2017-08-04
@FerRun

For the top layer, install pointer-events: none;
https://jsfiddle.net/rrwn8vnu/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question