HTML: Untere Ebene trotz Bild darüber anklicken?

3 Antworten

Hallo Destranix, vielen vielen Dank! Es funktioniert!

Mach ein transparentes Bild als Link darüber vlt geht das.

Woher ich das weiß:Hobby – Ich bin älter als das Internet.
Tilo2300  20.04.2024, 13:31

Nur weil etwas transparent ist, heißt das nicht, dass es nicht da ist. Kann man an einer Fensterscheibe ganz gut nachvollziehen.

1

Füge im CSS folgendes hinzu:

pointer-events: none;

Das sollte dann gehen. Siehe auch:

https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events

In addition to indicating that the element is not the target of pointer events, the value
none
instructs the pointer event to go "through" the element and target whatever is "underneath" that element instead.