Selecting parent item using css : <p>Is there a way that I can select parent item using css? I mean my structure is this</p>

<pre><code>&lt;label&gt;
  &lt;input /&gt;
&lt;label&gt;
</code></pre>

<p>In my css I am trying to do something like this,</p>

<pre><code>input['_type_']:checked _parent_ label:after{
  some css
}
</code></pre>

<p>I cannot use, attribute <em>for</em> in label.</p>
