-1

I'm using jQuery Text Editor, but I couldn't find a way to change the selected text background. Does anyone know how to do it?

adolfotcar
  • 515
  • 2
  • 8

2 Answers2

0
::selection {
  background: #ffb7b7;
}

First google example: http://css-tricks.com/overriding-the-default-text-selection-color-with-css/

DrColossos
  • 12,656
  • 3
  • 46
  • 67
0

the other answers seem to be about what color shows up as you highlight text.

jqte doesn't seem to actually have a simple way to change highlighting/the text background! The best bet I've found is using source/html view and manually adding:

<span style="background-color: yellow;">highlighted text</span>

tuffylock
  • 1
  • 2