::selection
In this chapter you will learn:
Description
The ::selection
selector
selected the user-selected part of an element.
Example
<!DOCTYPE html><!-- j a va2 s .c o m-->
<html>
<head>
<style>
::selection{
color:#ff0000;
}
</style>
</head>
<body>
<p>Drag to select this paragraph.</p>
</body>
</html>
Next chapter...
What you will learn in the next chapter:
Home » HTML CSS Tutorial » CSS Selector Reference