I want to style all the input and select from inside a certain div in a certain manner. I know I can do (1)
#divNew select {
display:table-cell;
margin-left:1em;
}
#divNew input {
display:table-cell;
margin-left:1em;
}
and I can also do (2)
#divNew select,#divNew input {
display:table-cell;
margin-left:1em;
}
and I know I can't do (3)
#divNew select,input {
display:table-cell;
margin-left:1em;
}
because (3) applies this style to all input, inside and outside divNew.
My question is: is this all that is to it? I prefer the shorter option (2), but I feel that the redundant #divNew should be eliminated. Can it become even shorter than (2)?
#divNew. And I'm not into so big projects as to need another layer of complexity.