Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox image selecting bug CSS

Tags:

html

css

firefox

I am working on project and added images as relative positions. But in browsers images are working fine except Firefox. When i click image it selects the image. You can see by visit this link :

Visit : http://tinypic.com/r/5e7go1/8

or you can check website URL : http://cqindia.org/website/ here i uploaded the website.

When you open this website in firefox and scroll down to slider section then you can see the bug.

Main problem is when i click background image i select the image.

I have already tried too many things : Like - positions to absolute and changed z-index but nothing work.

Also i have visited some stack pages but no answer found.

Already used this css code :

.main_container section img {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

Thanks

like image 297
Mandeep Gill Avatar asked Apr 26 '26 07:04

Mandeep Gill


1 Answers

Try disabling user selecting on that image:

 -moz-user-select: none;

If that works, all browsers can be addressed via:

-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
like image 125
wellagain Avatar answered Apr 27 '26 19:04

wellagain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!