Jump to content

Photo click feature


Recommended Posts

Hello
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

custom.css:

.no-click {
  pointer-events: none;
}

 

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

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

 

avangcom 

Link to comment
Share on other sites

@aLEX49566

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

q1.png.613df9369d0e9d9426ec5b950b0c8ae6.png

I want it to be like this

q2.png.427e1db6f7af668efc6dd12c90f48fcb.png

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.

Guest
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...