Answers.Body: <p>You can use an attribute selector in css, for example</p>
  
  <blockquote>
    <p>label[for="middle_name"] {   display:none; }</p>
  </blockquote>
  
  <p>For more info see:
  <a href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors" rel="nofollow noreferrer">http://www.w3.org/TR/CSS21/selector.html#attribute-selectors</a>
  or
  <a href="https://stackoverflow.com/questions/2599627/how-to-select-label-for-email-in-css">https://stackoverflow.com/questions/2599627/how-to-select-label-for-email-in-css</a></p>
  
  <p>Does even work in IE, from version 8.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-14T19:45:06.593Z
Answers.LastActivityDate: 2016-03-14T19:45:06.593Z
Answers.LastEditDate: 2017-05-23T12:38:59.763Z
Answers.UserDisplayName: Catorghans
Body: <p>I can see how to hide an input field using custom css, but I cannot figure out how to hide the specific label for that field. All the labels on the contact form seem to have the same selector. I am missing something?</p>
  
Tags: <css>
Title: Targetting CiviCRM input field labels with css
ThreadText: # Targetting CiviCRM input field labels with css
  
  (Asked by: username_0 on 2016-03-14)
  
  I can see how to hide an input field using custom css, but I cannot figure out how to hide the specific label for that field. All the labels on the contact form seem to have the same selector. I am missing something?
  
  **Tags:** css
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-03-14. Score: 1 | Accepted answer
  
  You can use an attribute selector in css, for example
  
  > label[for="middle\_name"] { display:none; }
  
  For more info see:
  <http://www.w3.org/TR/CSS21/selector.html#attribute-selectors>
  or
  <https://stackoverflow.com/questions/2599627/how-to-select-label-for-email-in-css>
  
  Does even work in IE, from version 8.
  
  
  ---
  
  