Changing the Color of Selection with CSSOle Ersoy·Follow1 min read·Apr 24, 2020--ListenShareImage by Gerd Altmann from PixabayScenarioWhen the text is selected we want the text color to be red and the background to be yellow .Approach::selection { color: red; background: yellow;}