title: Define style of Div tag
body: <p>I want to define the style of Div based on a CSS file. The CSS code I have written is:</p>
  
  <pre><code>.body
  {
      text-align: center;
      padding: 1px;
      margin: 1px;
      color: black;
      background-color:lightgrey;
  }
  </code></pre>
  
  <p>I want the background of each Div section to be light-grey. What's wrong with the above code?</p>
  
  <p>Edited:</p>
  
  <p>This is my HTML code. I changed the Div class as suggested below, but it is not working. Please also check whether the Link tag contains path correctly or not. The CSS file is located in a Lib folder, up-one-level.</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
          &lt;title&gt;Add/Update Political Party&lt;/title&gt;
          &lt;link rel="stylesheet" href=".\Lib\entryformstyle.css" type="text/css"/&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="sectionEntryForm" class="div"&gt;
              &lt;table id="tblEntryForm" cols="2"&gt;
                  &lt;tr&gt;
                      &lt;td colspan="2" align="center"&gt;Add/Update Political Party&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;Party full name:&lt;/td&gt;
                      &lt;td&gt;&lt;input id="inPartyFullName" name="inPartyFullName" accept="text/plain" maxlength="80" class="inputBoxStyle"&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;Party short name (initials):&lt;/td&gt;
                      &lt;td&gt;&lt;input id="inPartyShortName" name="inPartyShortName" accept="text/plain" maxlength="80" class="inputBoxStyle"&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>