What I am capable of doing:
Creating HTML:
<div id="test">
HELLO!
<input type="text">
</div>
Styling with CSS:
#test {
color:#F00;
}
#test input[type=text] {
background-color:#000;
}
Now, if the #test
is replaced with a class name .test
:
<div class="test">
...
How can I adjust the CSS for this scenario?