title: Applying :focus pseudo-class on an element
body: <p>Here, I want to edit some attributes of my label when there is a focus event on input field so,</p>
  
  <p>But it is not working, when the input field gains focus there is no change in label element what should i do both of the below methods are not working for me. </p>
  
  <p>I am writing it as,</p>
  
  <p>
  </p>
  
  <pre><code>  .input-field:focus + .input-label{
       background : black;
     }
     or
    .input-field:focus .input-label{
       background : black;
     }
  </code></pre>
  
  <p>
  </p>
  
  <p>Both the methods are not working for me.</p>