C
C
Chokatillo2015-11-07 19:39:01
css
Chokatillo, 2015-11-07 19:39:01

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

2 answer(s)
I
Igor Shansky, 2015-11-07
@Amstor

A {
    color: red; /* Цвет ссылок */
   }

S
Sergey, 2015-11-07
@gangstarcj

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 question

Ask a Question

731 491 924 answers to any question