Select element with not(.className) - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:not

Description

Select element with not(.className)

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
p:not(.header) {<!--from  ww  w  .j a v a 2s.co  m-->
   margin-bottom:19px;
   line-height:181%;
   color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <p class="header"> Some Paragraph in header</p> 
  <p>Containing some text </p>  
 </body>
</html>

Related Tutorials