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

:not()

यह selector specify की गयी class को छोड़कर बाकि दूसरे elements पर apply होता है।

:not()

     This selector applies to all other elements except the specified class.

Example:

 

<html>

<head>

<style>

p:not(#MyPara)

{   

color:red;

}

</style>

</head>

<body>

<p>This is first paragraph</p>

<p id=”MyPara”>This is second paragraph</p>

</body>

</html>

 

error: Content is protected !!