html - Image container over a link -


so, have links automatically generated.

for specific page don't want users click link (only see there).

without modifying code, thinking of putting div container on high z-index users cannot click it.

should embed 1 pixel image background repeat positioned on top of link or there better way of achieving this?

thanks

you can disable pointer events using css, actually. example, if add class or can identify <a> element in way, use css:

a.disabled {    pointer-events: none;    cursor: default; } 

browse support pointer-events can seen here.

credit this stackoverflow answer.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -