I have an unordered list like this:
list1 Sub list1<
The only way of doing this is like:
.List > ul > li { background-color: #ccc; }
If you want to apply only the bgcolor to the ul simply do:
.List > ul { background-color: #ccc; }
:)