title: Hide Table Row Using CSS
body: <p>Is it possible to hide table rows using CSS, I have a project that required this concept.
  Here is my code:</p>
  
  <p><strong>style.css:</strong></p>
  
  <pre><code>#hide-row { display:none; }
  </code></pre>
  
  <p><strong>file.php</strong></p>
  
  <pre><code>&lt;table&gt;
    &lt;tr&gt;
        &lt;th&gt;Name&lt;/th&gt;
        &lt;th&gt;Address&lt;/th&gt;
    &lt;/tr&gt;
    &lt;div id="hide-row"&gt;
       &lt;?php foreach( $cops as $row ) { ?&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;?php echo $row-&gt;name; ?&gt;&lt;/td&gt;
              &lt;td&gt;&lt;?php echo $row-&gt;address; ?&gt;&lt;/td&gt;
          &lt;/tr&gt;
       &lt;?php } ?&gt;
    &lt;/div&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>But, It didn't work, the records still appear. Anybody help how to solve this case?
  Any help will be appreciated. Thank You in Advanced !</p>