D
D
Dmitry Podabed2016-09-23 18:43:07
css
Dmitry Podabed, 2016-09-23 18:43:07

How to change highlight color for images?

html {
    text-align: center;
    background: #f4f4f4;
    color: #0a0a0a;
}

*::-webkit-selection {
    background: #0a0a0a;
    color: #f4f4f4;
}

*::-moz-selection {
    background: #0a0a0a;
    color: #f4f4f4;
}

*::-ms-selection {
    background: #0a0a0a;
    color: #f4f4f4;
}

*::-o-selection {
    background: #0a0a0a;
    color: #f4f4f4;
}

*::selection {
    background: #0a0a0a;
    color: #f4f4f4;
}

img {
    padding: 2em 2em;
    width: 3em;
    display: inline-block;
}

Actually, the text is now selected as intended (inverted), and the images are still bluish with black artifacts. Where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Novikov, 2016-09-23
@debian2

Selection issues in a specific browser?
I have both the picture and the text highlighted in gray. Google Chrome
In my memory, Firefox had problems with changing the selection color in relation to images
codepen.io/anon/pen/BLWKad

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question