Important Notice:

Course Content
Float Property
0/1
Z-Index
0/1
CSS object-fit Property
0/1
CSS Visibility Property
0/1
CSS (Chapter 4) M2-R5.1
About Lesson

::selection

           जब Element Content को Mouse द्वारा Select किया जा रहा हो तब Selected Content को Style करने के लिए इस Element का इस्तेमाल किया जाता हैं। इस Element के साथ color, background, font आदि CSS Properties को Define किया जा सकता हैं।

::selection

       When the element content is being selected by the mouse, then this element is used to style the selected content. CSS properties like color, background, font etc. can be defined with this element.

Example:

 

<html>

<head>

<style>

::selection

{   

background-color:lime;   

color:white;

}

</style>

</head>

<body>

<p>When you select this background will become lime and text color will become white. Try it</p>

</body>

</html>

 

error: Content is protected !!