Jump to content

Photo click feature

Recommended Posts

I want to add a photo in the language section of the translation section for a text, but I don't want the photo to be clickable
Normally, when I place the photo, by clicking on the photo, the photo will be enlarged. I want to get this feature from only this photo, not all photos.
I used the following code

<img src="https://ipbmafia.ru/uploads/reactions/react_thanks.png" width="25" height="25">


Link to comment
Share on other sites


.no-click {
  pointer-events: none;


Фото, которое не будет кликабельным:

<div class="no-click"><img src="https://ipbmafia.ru/uploads/reactions/react_thanks.png" width="25" height="25"></div>



Link to comment
Share on other sites


I used this code, it works correctly, but it turns out like this


I want it to be like this


I wrote the code like this, it worked, there is no problem???

 <div class="no-click">Give<img src="https://ipbmafia.ru/uploads/reactions/react_thanks.png" width="25" height="25"> to this post to see the hidden content. </div>


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...