We would like to know how to ignore css class.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.red:not (.yellow ) {<!--from ww w. j a va 2 s. c o m-->
color: red;
}
.yellow {
background-color: yellow;
}
</style>
</head>
<body>
<div class="red yellow">Glee's awesome!</div>
<div class="red">Glee's awesome!</div>
</body>
</html>
The code above is rendered as follows: