Hi, I have the following stylesheet:
/* MyStylesheet.css */ .MyForm .MyInput fieldset { border: 2px solid grey }
And then the following HTML code:
<div class="MyForm"> <div class="MyInput"> <fieldset> <style type="text/css"> .MyInnerFieldsets fieldset { border: 0 } </style> <div class="MyInnerFieldsets"> <fieldset> </fieldset> <fieldset> </fieldset> </div> </fieldset> </div> </div>
All fieldsets are receiving the 2px solid grey border from the external stylesheet. I thought the nested fieldsets would receive the 0 border from the embedded style, since the selector ".MyInnerFieldSets fieldset" takes precedence over ".MyForm .MyInput fieldset". I tested this in Firefox 3.6.8. Is this the expected behavior or is this a Firefox problem?
Thanks