Using the "body" in your rule isn't a hack, it's just better CSS specificity. All of the elements you're targeting are children of the body. If you make your rule more specific, it will take precedence over other more generic rules when the browser renders the styles.
if you really wanted to get all wild on your form, you could even get this granular to target a select field.
html body div.contentWrapper div#content div.innerContent div.productSidebar div#gform_wrapper_2.gform_wrapper form#gform_2 div.gform_body ul#gform_fields_2.gform_fields li#field_2_2.gfield div.ginput_container select#input_2_2.medium
Posted 11 years ago on Saturday July 30, 2011 | Permalink