Select all but one td in a table using CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Select all but one td in a table using CSS

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">
div>:not(#lol) {
   border:2px solid Chartreuse;
}
</style> <!-- www. j a  v a  2 s  .c  o m-->
 </head> 
 <body> 
  <div> 
   <p>Lorem ipsum </p> 
   <p id="lol">Lorem ipsum </p> 
   <p>Lorem ipsum </p> 
   <p>Lorem ipsum </p> 
  </div>  
 </body>
</html>

Related Tutorials