Hack Forums
Firefox - When highlighting it doesn't show? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141)
+---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50)
+---- Thread: Firefox - When highlighting it doesn't show? (/showthread.php?tid=5330488)



Firefox - When highlighting it doesn't show? - Skidy - Jul 7, 2016

For some reason on FireFox, when highlighting any field on my website, it doesn't show the blue highlighting. It can copy it but won't show the blue highlighter when dragging your mouse along the text. Any ideas?


* - SteezyHB - Jul 7, 2016

You can use the following CSS code to overwrite the highlight color
Code
::selection {
  background: #ffffff;
}
::-moz-selection {
  background: #ffffff;
}
However if you want to know why the current highlighting doesn't work, PM me your website and I'll take a look at the code.


* - Skidy - Jul 7, 2016

(Jul 7, 2016 07:02 AM)SteezyHB Wrote:  You can use the following CSS code to overwrite the highlight color
Code
::selection {
  background: #ffffff;
}
::-moz-selection {
  background: #ffffff;
}
However if you want to know why the current highlighting doesn't work, PM me your website and I'll take a look at the code.

that does fix the problem. What is the default colour for firefox?


Update: Fixed the problem. An API style sheet changed the ::selection and ::-moz-selection.

I over-rid the style sheet on a new page. Works a treat.