title: Is there a way to set a CSS style to a label of a specific input type?
body: <p>I have the following style set for labels of a particular form:</p>
  
  <pre><code>#incidentForm label {
      font-weight:bold;
      width:40%;
      vertical-align:top;
  }
  </code></pre>
  
  <p>Which is exactly what I want for my full page form. But for the modal that allows one to update a single field from a report where someone would view the data results, I would like the label for the TEXTAREA ONLY to NOT be limited to the "width:40%". All other input types should keep the "width:40%".</p>
  
  <p>I've been trying to wrap my brain around how to either do a :NOT exception to the existing label style, or somehow set a separate style based on the class of the modal. I.E.:</p>
  
  <pre><code>.updateModal label(that somehow identifies only textareas) {
      width:100%;
  }
  </code></pre>
  
  <p>Here is an example of the structure of the update modal itself:</p>
  
  <pre><code>&lt;div id="Return" class="updateModal"&gt;
    &lt;div id="incidentForm"&gt;
      &lt;div class="[name of this incident form type]"&gt;
        &lt;form class="AjaxForm" action="https://blahblahblah" method="post"&gt;
          &lt;fieldset id="fs1"&gt;
            &lt;legend&gt;Edit report field&lt;/legend&gt;
            &lt;div class="field"&gt;
              &lt;label for="31"&gt;This is the label for this text area field:&lt;/label&gt;
              &lt;textarea id="31" name="31"&gt;&lt;/textarea&gt;
            &lt;/div&gt;
          &lt;/fieldset&gt;
          &lt;input value="Update record" type="submit"&gt;
        &lt;/form&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Please note that the id for the textarea and, thus the label for it, are generated dynamically based on the id field of the database the form information is pulled from. All of the field information is stored in a db so I would not be able to generate a specific style definition based on the id of the specific textarea itself. Or at least not that I can think of.</p>
  
  <p>Does anyone have any suggestions?</p>
  
  <p>Thank you very much!</p>