Not quite sure about the effectiveness of the title, but here's what I'm attempting to accomplish.
<div class="mystyle">
<select name="somename" id="somename">
<option value="Value1">
<option value="Value2">
</select>
</div>
<div class="myotherstyle">
<select name="somename" id="somename">
<option value="Value1">
<option value="Value2">
</select>
</div>
Is there a way to apply styles to the select element within the div with the "mystlye" class without directly assigning the class to the select? My goal is to style the select element only if it resides in a div with the class "mystyle".
Something along these lines:
div.mystyle {
border: 1px solid #ff0000;
background-color: #ffeeee;
}
div.mystyle.select {
margin: 0px 5px 10px 0px;
}