Answer the question
In order to leave comments, you need to log in
Color highlighting content on the site in browsers: DEFAULT, STANDARD?
How to set the default color value without changing the color (since these "settings" are set in the css of WordPress, but I only need to change the color of the selection text)? Is there a color generally standard for all browsers, or do creators use their own colors for each browser? If standard, what is it in the html code?
Answer the question
In order to leave comments, you need to log in
p.red::selection {
background: #ffb7b7;
}
p.red::-moz-selection {
background: #ffb7b7;
}
p.blue::selection {
background: #a8d1ff;
}
p.blue::-moz-selection {
background: #a8d1ff;
}
p.yellow::selection {
background: #fff2a8;
}
p.yellow::-moz-selection {
background: #fff2a8;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question