Jump to content

Featured Replies

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
https://ipbmafia.ru/topic/27156-photo-click-feature/
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
https://ipbmafia.ru/topic/27156-photo-click-feature/?&do=findComment&comment=204516
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
https://ipbmafia.ru/topic/27156-photo-click-feature/?&do=findComment&comment=204533
Share on other sites

Оставь свой код или замени div на span.

Link to comment
https://ipbmafia.ru/topic/27156-photo-click-feature/?&do=findComment&comment=204536
Share on other sites

avangcom Попробуй так

.no-click {
  pointer-events: none;
  white-space: nowrap;
}

 

Link to comment
https://ipbmafia.ru/topic/27156-photo-click-feature/?&do=findComment&comment=204539
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
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.