I have 5 fieldsets which has unique IDs. I want to give a particular styling to all the input tags in it. For example:
#fieldset-long1,#fieldset-long2,#fieldset-long3,#fieldset-long4,#fieldset-long5{style for fieldset}
Now to give style to the inputs in these 5 field sets, I will have to write #fieldset-long1 input,#fieldset-long2 input,#fieldset-long3 input{style for input}.
Just wondering if there is an easier CSS selector to specify the parents of a tag that I want to apply styles to.
HTML for fieldset:
<fieldset id="fieldset-long1">
<dt><label for="email">Email:</label></dt>
<dd><input type="text" name="email" id="email" value="" tabindex="3" /></dd>
</fieldset>
with css lower than 3 it is not possible but with css3 you can do something like this :