use pure css selector to select hidden element - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:id

Description

use pure css selector to select hidden element

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">
.col[style*="display:none"] {
   display:table-cell!important;
   font-size:0;
}

.col>span {
   font-size:21px;
}
</style> <!--from   w ww.  j a  v  a  2 s.co  m-->
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td class="col" style="display:none">Lorem ipsum dolor sit amet, consectetur adipiscin<span prop="1" class=" clear-icon " style="">Lor</span> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials