CSS ::selection - Style Selected Text
The CSS ::selection pseudo-element is used when we need to change the default style of selected portion of text, by user on a web page. For example:
This is para one.
This is para two.
Note - If you select some text from above three paragraphs, then the defined style will get applied to the selected portion.
List of Properties that can be applied to CSS ::selection
« Previous Tutorial Next Tutorial »
Follow/Like Us on Facebook
Subscribe Us on YouTube