CSS selector for label of any element with class foo -
code like
<label for="bar">baz: <input type="text" name="bar" id="bar" class="foo"/></label>
i style label how select css?
there no way select parent element using css alone. possible in upcoming css 4 (thanks andyb)
so have 2 other options:
modify html have handle on parent can style it.
use javascript select parent based on child's css/id/name attribute.
Comments
Post a Comment