Css negation pseudo-class, :not(X)
can be used on any simple selector. It will match element which are not selected by selector X.
Example – css :not
Set background color of div which does not have class “box”.
<style type="text/css" media="screen"> div:not(.box) { background-color:lightblue; } </style> <div class="box">div1</div> <div>div2</div>