A
A
Aleksandr2019-04-09 12:51:39
css
Aleksandr, 2019-04-09 12:51:39

Why does opening a lightbox on click work in a specific location?

Hello.
Lightbox Fresco has been added to the site, by clicking on the icon a gallery opens.
But you need to click in a certain place on this icon, I found out that this is the fault of the appearance of text and dimming when hovering over the icons, that is, if you remove the text by "poking" anywhere, everything will open.
It is impossible without text, there is some kind of solution.
Thank you all very much for any response.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Tsymbal, 2019-04-09
@QQQ-RRR

You need to add a CSS property to the text wrapper that overlaps the icon - this rule is needed in situations where some element should be present on the page, but mouse events (hover, clicks) pass through it, to the layer below it. https://jsfiddle.net/yu5dat2L/1/ - in this case added pointer-events to the .thumbs:before (gradient black box) and .thumbs .caption (text over) selectors. pointer-events: none;

A
Aleksandr, 2019-04-09
@QQQ-RRR

A quick example (if you click on the middle of the top it works) how to make a click on the whole picture work
https://jsfiddle.net/dxak1q27/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question