//html code <p class="custom-text-selection">Select some of this text.</p> //css code ::selection { background: aquamarine; color: black; } .custom-text-selection::selection { background: deeppink; color: white; }
//html code <p class="custom-text-selection">Select some of this text.</p> //css code ::selection { background: aquamarine; color: black; } .custom-text-selection::selection { background: deeppink; color: white; }